-
-
Notifications
You must be signed in to change notification settings - Fork 416
Closed as not planned
Labels
Description
Description of problem
The latest version of the HTML validator complains about the <div> elements used with an aria-label attribute to mark up the Can I Use data in specs.
URL to affected spec or repo:
see e.g. https://validator.w3.org/nu/?doc=https%3A%2F%2Fwww.w3.org%2FTR%2Fmediacapture-streams%2F
What happened (e.g., it crashed)?:
Generates invalid markup
error: The “aria-label” attribute must not be specified on any “div” element unless the element has a “role” value other than “caption”, “code”, “deletion”, “emphasis”, “generic”, “insertion”, “paragraph”, “presentation”, “strong”, “subscript”, or “superscript”.
Expected behavior (e.g., it shouldn't crash):
Generate valid markup
Optional, steps to reproduce:
- enable caniuse data in the config
- generate the HTML
- validate with it with the latest version of the validator
Reactions are currently unavailable