w3c / epubcheck

The conformance checker for EPUB publications
https://www.w3.org/publishing/epubcheck/
BSD 3-Clause "New" or "Revised" License
1.63k stars 403 forks source link

Both 4.2.0 versions will stop if they encounter a deprecated epub:type, won’t check aria role is correct #1021

Closed JayPanoz closed 5 years ago

JayPanoz commented 5 years ago

So sorry to be that guy. :-(

In an EPUB I’ve been working on for a few weeks, I temporarily used a placeholder like:

<div epub:type="rearnote" role="doc-endnote">

Then I reported issue #1010 so I wanted to come back to it and correct that because doc-endnote require <li> and, out of curiosity, I tested version 4.2.0

In epubcheck 4.2.0 beta I got this warning:

Property 'rearnote' is deprecated. Consider using the 'endnote' property instead.

In epubcheck 4.2.0 rc, it went completely unnoticed – since handling of deprecated epub:types was changed somehow?

So as far as I can tell, epubcheck may be stopping validation on the deprecated epub:types and not check the role that follows.

Logs:

rdeltour commented 5 years ago

So there are two different things here:

So I think there are nothing wrong with EPUBCheck here (no false-negative). I'm closing this as invalid, but feel free to keep discussing or reopen if I missed something!

JayPanoz commented 5 years ago

Eew thanks, sorry for the inconvenience.

God I'm happy this is my last eprdctn gig, I can't even tell whether the most basic a11y stuff I'm doing is right or not anymore. 😩

rdeltour commented 5 years ago

Eew thanks, sorry for the inconvenience

No problem! ☺️ The epub:type/ARIA role mapping is a bit of a red herring (in that it’s not really a mapping), so it’s prone to confusion…