Closed
Description
Version
2.6.11
Reproduction link
https://www.dropbox.com/s/3ltqeent65djedw/problematic-false-aria-values.zip?dl=0
Steps to reproduce
- Extract the provided zip archive and enter the produced "problematic-false-aria-values" directory.
- Install dependencies (i.e.
yarn install
). - Run the development server (i.e.
yarn serve
) and head to its url with your favorite browser. - Inspect the DOM of the page: the
aria-checked
andaria-expanded
attributes won't be there. - Enable the checkbox and/or expand the toggle.
- Inspect the DOM of the page: this time both
aria-checked
andaria-expanded
will be there as expected. - Disable the checkbox and collapse the toggle.
- Inspect the DOM of the page: the
aria-checked
andaria-expanded
attributes won't be there, again.
What is expected?
Aria attributes should be present in the DOM even if their value is false.
What is actually happening?
Aria attributes are not present in the DOM when their value is false.
Unlike for html 5 boolean values, removing aria attributes from the DOM when their value is false changes the page semantics and degrades its accessibility, causing markup validation issues as well.
Metadata
Metadata
Assignees
Labels
No labels