Skip to content

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

Closed

Description

@Doktorchen

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)

Activity

  1. deleted a comment from Doktorchen on Jul 4, 2023
  2. rdeltour commented on Jul 4, 2023

    @rdeltour
    Member

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

  3. self-assigned this
    on Jul 4, 2023
  4. added
    spec: EPUB 2.xImpacting the support of EPUB 2.x specifications
    type: false-positiveThis issue is about valid content being incorrectly rejected
    on Jul 4, 2023
  5. added a commit that references this issue on Jul 6, 2023
    d916df0
  6. added
    status: has PRThe issue is being processed in a pull request
    and removed on Jul 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

spec: EPUB 2.xImpacting the support of EPUB 2.x specificationsstatus: has PRThe issue is being processed in a pull requesttype: false-positiveThis issue is about valid content being incorrectly rejected

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    ⌂ 换网址