You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Both specifications define different implicit and allowed roles for the svg element. My first assumption was:
<html><body><svg><!-- should validate against the html spec --><svg><!-- should validate against the svg2 spec --></svg></svg></body></html>
But both are inside the SVG namespace, so I started wondering if my assumption is correct. And maybe the should only be validated to the SVG2 specification.
What is the correct behavior?
The text was updated successfully, but these errors were encountered:
Both define the default role to be "graphics-document". Both SVG AAM and the SVG spec state that there are no restrictions on the role that can be used by the author. Your millage probably varies on what browsers actually use however as SVG AAM and implementations of it are work in progress.
The SVG-AAM needs a republication (I'm working on it!) to match what's in HTML-AAM and SVG2. The version David linked to is the Editor's Draft (updated); the TR version is out of date.
If ARIA in HTML still has the old mapping, it also needs an update.
There has been some discussion (in w3c/html-aam#43) about whether the graphics-document mapping should automatically simplify to an img mapping when the element does not have any accessible children. However, the same rules would apply for both the SVG with CSS layout box (the one that's a direct child of HTML) and a nested SVG.
Related specs:
Both specifications define different implicit and allowed roles for the
svg
element. My first assumption was:But both are inside the SVG namespace, so I started wondering if my assumption is correct. And maybe the should only be validated to the SVG2 specification.
What is the correct behavior?
The text was updated successfully, but these errors were encountered: