Skip to content

caniuse insert uses invalid markup #5091

@dontcallmedom

Description

@dontcallmedom

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions