Difference between revisions of "Aria-hidden false and tabindex"

From Level Access Web Labs
Jump to navigation Jump to search
Line 1: Line 1:
 
<html>
 
<html>
 
<div aria-hidden="false"> test </div>
 
<div aria-hidden="false"> test </div>
<a aria-expanded="true" aria-controls="d" href="javascript:document.querySelector('#d').setAttribute('aria-hidden','false');" id="s"> Show </a>
+
<a aria-expanded="true" aria-controls="d" href="#" onclick="document.querySelector('#d').setAttribute('aria-hidden','false');" id="s"> Show </a>
 
<div id="d" aria-labelledby="s" role="region" aria-hidden="true" tabindex="-1">  
 
<div id="d" aria-labelledby="s" role="region" aria-hidden="true" tabindex="-1">  
 
<p>
 
<p>

Revision as of 16:30, 20 May 2020

test

Show

text with -1 expanded no region
text with -1 region no expanded