3 ms·
Using role attribute instead class name in JavaScript FTW
- jacobr 15y agoRandom usage of role doesn't make sense. The spec states that "Authors must not set the ARIA role and aria-* attributes in a manner that conflicts with the semantics described in the following table" http://developers.whatwg.org/content-models.html#annotations-for-assistive-technology-products-(aria) http://developers.whatwg.org/content-models.html#annotations...