-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
consider allowing other roles on the figure
element
#99
Comments
I think adding TBH, I think that's an oversight since HTML doesn't allow a regarding allowing image-related roles on the |
Right. I hadn't realized at the time I opened this issue that problematic aspect of overriding the native I believe the situation is a tad more complex however. I don't think HTML strictly forbids In other words, would there be anything wrong with the following markup? <figure role=doc-example aria-describedby=caption>
<figcaption id=caption>…<figcaption>
…
</figure> Out of curiosity, do you know or happen to have tested how AT deal with All that said, I do realize that it would be much simpler and a better practice to set the
Right, I agree. Allowing the |
@rdeltour per the PR I've created referencing this issue, I've adjusted the allowances where a However, if the |
I think this is another issue we should take up in the next dpub-aria revision. doc-example is intended to be analogous to a figure which is why it also inherits from the section role. The figure role itself has this overlapping sense in its definition: "A perceivable section of content that typically contains a graphical document, images, code snippets, or example text." It might be more intuitive to have it inherit from the figure role instead, and then there wouldn't be this problem with what to do about figcaption (although that problem should be addressed since it seems like it applies if you were to use group, none or presentation on the element). |
seems we were responding at the same time @mattgarrish, as yes, the issues of using That said, I think you're right and inheriting from |
Ah, I just now realize that I missed the new
but then we're hit by w3c/dpub-aria#15 and w3c/aria#1056? |
yes, need to wait for ARIA 1.2 to be published before I can do some mass updates over here :) |
The document conformance requirements currently says that only the roles
group
,none
, andpresentation
may be used on thefigure
element.I believe the
doc-example
role should also be allowed. Possibly others too? (img
/doc-cover
?'math
? not quite sure about these ones).The text was updated successfully, but these errors were encountered: