-
Notifications
You must be signed in to change notification settings - Fork 408
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
epubcheck 4.2.0.-beta: meta element with attribute type from OPS namespace #986
Comments
Right, although this attribute really only is intended to be used in the body. I guess making that change doesn't hurt however, or should this be limited by spec? ping @mattgarrish. |
Well, the specification notes that it's pointless to put in the
It's not for expressing metadata, so is not a complement to the |
This spec note doesn't make it invalid, nor a warning. I suggest we update EPUBCheck to make it pass, as it's an easy change (declaring the attribute in the |
Previous versions of epubcheck had the bug not to accept the RDFa attribute property here -surprise, now you get trouble with another attribute, this may already result in various attempts to work around the previous bug. |
From the global aspect, yes. But it's unfortunate it's allowed in the header at all. It might be worth raising it with the CG. The attribute exists to express a subclass of the carrying element, which is a must per the specification. A structural semantic isn't being applied here, and I doubt one ever could. The attribute is supposed to be functionally equivalent to ARIA |
Right, it's not EPUBCheck's decision to make and needs to come from the CG. In the mean time, I'll "fix" it in the schema. |
For this use case I would recommend using |
Due to the prefixed values it has a general meaning, therefore nothing for this obscure data-* pseudo-attributes. |
As a small clarification on They’re meant for proprietary information to be exchanged between the HTML and its DOM representation by scripts – source. So they should not be used to store content that should be visible and accessible in data attributes, because assistive technology may not access them. In addition, search crawlers may not index data attributes' values, etc. – source It seems like “internal” is not exchangeable with “proprietary” in this case. (I know |
Such metadata in digital books is typically not intended for the DOM. Typically digital books can have a long lifetime (they are saved permanently in national libraries like Deutsche Nationalbibliothek), there is a use case to provide detailed metadata in digital books for future generations, just in case someone gets interested in those books in a few hundred years. ;o) If this is restricted in the future, because OPS:type is only intended for metadata about the structure of a text, not general metadata: The major part of the audience will not want to see it, therefore maybe an additional alternate stylesheet with expert view, for normal stylesheets this area can be set to display: none Metadata in (X)HTML had never a good consideration. |
epubcheck 4.2.0.-beta clains, that it is not correct to use the attribute type from the OPS namespace within the meta element:
Example:
"
<html ...
xmlns:ops="http://www.idpf.org/2007/ops"
prefix="dct: http://purl.org/dc/terms/'
...
>
...
<meta name="creator" ops:type="dct:creator" property="dct:creator" content="Friedrich Schiller" />
"
Reports as:
"ERROR(RSC-005): SchillerndF.epub/Inhalt/andiefreude.xhtml(12,103): Error while parsing file: attribute "ops:type" not allowed here; ..."
EPUB 3.0.1 notes, that this OPS attribute is a global attribute ...
http://www.idpf.org/epub/301/spec/epub-contentdocs.html#sec-xhtml-content-type-attribute
The text was updated successfully, but these errors were encountered: