-
Notifications
You must be signed in to change notification settings - Fork 402
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
ARIA roles (in somes places) in EPUB 3.0.1 is fine for Epubcheck 4.1.1 but not with 4.2.0 alpha #965
Comments
Thanks for the report Ludovic, we'll look into it. |
The reason you get a warning about role="figure" on figure elements is because that semantic is implicit to figure elements and implicit semantics should not be explicitly declared. The ARIA in HTML document describes the proper use of ARIA semantics if you're ever in doubt - it's not something epubcheck has defined.
ARIA roles shouldn't be used on landmarks links unless they're valid link roles (e.g., doc-backlink or doc-noteref). So, in general, they shouldn't ever be used. What you're doing by putting doc-toc on a link is effectively indicating to AT that that link is actually a navigation element and should be treated as such. Epubcheck 4.2 incorporates the NU schemas, which provide proper validation of ARIA roles - something that has been lacking until now. |
Thanks for the clarifications @mattgarrish :) |
I quickly checked on https://validator.w3c.org and yeah the reports are the same there.
This one is bugging me a little however, as it's kinda counter productive to report an error for something that otherwise increases the accessibility support of the markup. But in any case, this issue would need to be discussed elsewhere, to the ARIA in HTML spec group or to the Nu Html Checker. I'll close this as |
So I had slightly deeper look at how validator.nu handles this. In fact, they implement HTML in ARIA to the letter, which in section 5.1 “Conformance Checker implementers” says:
For instance if you have a button with an overridden "button" role: <button role="button">press me</button> They would only report a warning:
I suppose this warning is implemented as a Java-coded assertion, and not as a schema rule. However, in the case of the
I think this is a bug in their schema, which should allow |
Ah, good point. I didn't look closely at the level reported, but it should only be a warning for redeclaring an implicit semantic. |
BTW (and off topic), @mattgarrish, do you know any trick to force VoiceOver on iOS to read |
Are these icon fonts? If so, my first thought would be to use role="img". There's a page describing how to do this here: https://www.w3.org/WAI/GL/wiki/Providing_a_Semantically_Identified_Icon_Font_with_role%3Dimg |
No, mostly phonetic symbols from Unicode IPA range: https://unicode.org/charts/PDF/U0250.pdf I'll test this role tomorrow. |
A number of "icon fonts" allow developers to use ligatures (i.e. named glyphs) as an easier-to-read alternative to unicode references. In several projects I have seen the |
See also some interesting testing done by David MacDonald in the article “What happens with aria-labelledby, aria-label and aria-describedby on static HTML elements?”. |
Thank you all :) Some tests with: iOS 12 with Lisa and R2-reader (Books with VoiceOver (VO) is useless, iBooks on iOS 11 was better)
(1) NVDA was fine without role in Chrome (so Readium 1, at least on Windows) not anymore. Found this: w3c/html-aria#26 |
The EPUB ssml:* attributes were intended for this case of clarifying pronunciation, but they never gained any adoption that I know of. Another effort at adding SSML to the web has been started here: w3c/pronunciation#108
Right, I think the idea with this approach is that you also have to have a hidden alternative that AT will read out (i.e., hide the actual glyphs from AT and hide the description from non-AT using clipping or off-screen positioning or a technique like that). |
SSML support would be great ! About aria-hidden, our EPUB have lot of phonetics inside texts or tables. All stuff should be duplicated, it don't seem good. |
FYI the Nu HTML Checker now accept an explicit This change will be integrated in EPUBCheck v4.2.0, since 8d3c77e |
Hi,
According to this article, I added
role="figure"
infigure
tags.Epubcheck-4.1.1 validate the EPUB but 4.2.0-alpha-1 returns errors.
Same thing with DPub role in
<nav epub:type="landmarks">
:<a role="doc-toc" epub:type="toc" href="toc.xhtml">
is fine with 4.1 but 4.2 returns:This EPUB contains lot of ARIA or Dpub-ARIA roles, 4.2 returns errors only with
figure
andlandmarks
.The text was updated successfully, but these errors were encountered: