What fresh hell is THIS now? - Patrick Lauke
aria-expanded
?
<section aria-expanded="false"> <h2><button>Title for section</button></h2> <div> <p>Lot's o' text</p> </div> </section>
I currently have:
<li> <h2><button id="faq-button-01" aria-controls="faq-section-01" aria-expanded="false">Lorem ipsum.</button></h2> <section id="faq-section-01" aria-expanded="false"> <p>Lorem ipsum dolor sit amet.</p> <ul> <li><a href="">Lorem ipsum dolor.</a></li> <li><a href="">Tenetur, expedita enim!</a></li> <li><a href="">Amet, tempora, provident?</a></li> <li><a href="">Quisquam, obcaecati, voluptatem.</a></li> <li><a href="">Ratione, tempora, consequatur!</a></li> </ul> <a href="">Lorem ipsum.</a> </section> </li>
But that doesn't really work.
aria-labelledby
, but that feels like it would be verbose.
aria-controls
is only implemented in JAWS, but this is per spec anyway.
If the element with the aria-expanded attribute controls the expansion of another grouping container that is not 'owned by' the element, the author should reference the container by using the aria-controls attribute.
aria-owns
would be my guess.
aria-owns
defines a relationship that should be hierarchical but is not hierarchical in the DOM in question