validator icon indicating copy to clipboard operation
validator copied to clipboard

ARIA attributes on SVG get marked as not allowed

Open AmeliaBR opened this issue 4 years ago • 0 comments

URL being validated or code to reproduce error: https://oreillymedia.github.io/Using_SVG/ch17-metadata-files/stoplight-titles-compatibility.svg (More sample SVG linked from this index page; for scripted examples, you'll need to run & then copy generated DOM into the validator.)

Error: Attribute aria-labelledby not allowed on SVG element svg at this point.

From line 1, column 1; to line 4, column 34

<svg xmlns="http://www.w3.org/2000/svg" xml:lang="en"↩     xmlns:xlink="http://www.w3.org/1999/xlink"↩     height="320px" width="140px" ↩     aria-labelledby="title-main">↩    <

Error: Attribute aria-hidden not allowed on SVG element defs at this point.

From line 8, column 4; to line 8, column 29

title>↩    <defs aria-hidden="true">↩     

Spec: https://svgwg.org/svg2-draft/struct.html#WAIARIAAttributes

AmeliaBR avatar Aug 19 '21 18:08 AmeliaBR