Skip to content
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 5.0.1 for EPUB2: content model for XHTML1.1 del and ins? #1522

Closed
Doktorchen opened this issue Jul 3, 2023 · 2 comments · Fixed by #1528
Closed

epubcheck 5.0.1 for EPUB2: content model for XHTML1.1 del and ins? #1522

Doktorchen opened this issue Jul 3, 2023 · 2 comments · Fixed by #1528
Assignees
Labels
spec: EPUB 2.x Impacting the support of EPUB 2.x specifications status: has PR The issue is being processed in a pull request type: false-positive This issue is about valid content being incorrectly rejected
Milestone

Comments

@Doktorchen
Copy link

Doktorchen commented Jul 3, 2023

Looks like version 5 gets the content modell for del and ins wrong for EPUB2 using XHTML1.1.
XHTML 1.1 allows 'flow mix' - block and inline, epubcheck 5.0.1 does not want block.

Something like

<del datetime="2011-09-02" 
     cite="#Z">
<h1>Title Old</h1>
</del>
<ins datetime="2011-09-02" 
     cite="#Z">
<h1>Title New</h1>
</ins>

results in:

Validating using EPUB version 2.0.1 rules.
ERROR(RSC-005): XHTML_ref.epub/Inhalt/test3.xhtml(54,5): Error while parsing file: element "h1" not allowed here; expected the element end-tag, text or element "a", "abbr", "acronym", "applet", "b", "bdo", "big", "br", "cite", "code", "del", "dfn", "em", "i", "iframe", "img", "ins", "kbd", "map", "noscript", "ns:svg", "object", "q", "samp", "script", "small", "span", "strong", "sub", "sup", "tt" or "var" (with xmlns:ns="http://www.w3.org/2000/svg")
ERROR(RSC-005): XHTML_ref.epub/Inhalt/test3.xhtml(58,5): Error while parsing file: element "h1" not allowed here; expected the element end-tag, text or element "a", "abbr", "acronym", "applet", "b", "bdo", "big", "br", "cite", "code", "del", "dfn", "em", "i", "iframe", "img", "ins", "kbd", "map", "noscript", "ns:svg", "object", "q", "samp", "script", "small", "span", "strong", "sub", "sup", "tt" or "var" (with xmlns:ns="http://www.w3.org/2000/svg")

Same test with EPUB3/HTML5 results in no messages.

(edited by @rdeltour for formatting)

@w3c w3c deleted a comment from Doktorchen Jul 4, 2023
@rdeltour
Copy link
Member

rdeltour commented Jul 4, 2023

Looks like a bug in the schema, I'll look into it.

@rdeltour rdeltour self-assigned this Jul 4, 2023
@rdeltour rdeltour added status: accepted Ready to be further processed spec: EPUB 2.x Impacting the support of EPUB 2.x specifications type: false-positive This issue is about valid content being incorrectly rejected labels Jul 4, 2023
@rdeltour rdeltour added this to the Next maintenance release milestone Jul 4, 2023
@rdeltour rdeltour added status: has PR The issue is being processed in a pull request and removed status: accepted Ready to be further processed labels Jul 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
spec: EPUB 2.x Impacting the support of EPUB 2.x specifications status: has PR The issue is being processed in a pull request type: false-positive This issue is about valid content being incorrectly rejected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants