w3c / html-aria

ARIA in HTML
https://w3c.github.io/html-aria/
Other
179 stars 48 forks source link

Correction: revise wbr and br element allowances #353

Closed scottaohara closed 2 years ago

scottaohara commented 2 years ago

closes #332

Revise the allowances for the br element - only allow aria-hidden attribute, rather than all global attributes.

Revise allowances for wbr to match br. Neither of these elements allow for styling from authors, nor do they allow for child content (or content from CSS - again no styling). So allowing for any roles/attributes beyond presentation or for hiding would not be a wise idea.

Need at least two checkers to accept this change before we can merge.

html validator

ibm equal access accessibility checker

axe-core

arc toolkit

html validator and axe issues are still open in regards to limiting allowed aria-* attributes on these elements to aria-hidden alone.


Preview | Diff

scottaohara commented 2 years ago

This can now be merged after the 1.0 spec officially meets Rec status.

scottaohara commented 2 years ago

As 3 of the 4 checkers have already updated the role allowances for wbr, and intent to implement the additional aria-* allowances for br and wbr has met no opposition, I'm going to merge this into the spec.