Skip to content

Commit

Permalink
fix: allow flow content for ins and del XHTML 1.1 elements (EPUB …
Browse files Browse the repository at this point in the history
  • Loading branch information
rdeltour committed Jul 6, 2023
1 parent 0573214 commit d916df0
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
Expand Up @@ -5,7 +5,7 @@
<define name="del">
<element name="del">
<ref name="del.attlist"/>
<ref name="Inline.model"/>
<ref name="Flow.model"/>
</element>
</define>

Expand All @@ -18,7 +18,7 @@
<element name="ins">
<ref name="Common.attrib"/>
<ref name="ins.attlist"/>
<ref name="Inline.model"/>
<ref name="Flow.model"/>
</element>
</define>

Expand Down
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Minimal EPUB</title>
</head>
<body>
<del datetime="2011-09-02">
<h1>Title Old</h1>
</del>
<ins datetime="2011-09-02">
<h1>Title New</h1>
</ins>
<p>Call me Ishmael.</p>
</body>
</html>
5 changes: 5 additions & 0 deletions src/test/resources/epub2/ops-content-document-xhtml.feature
Expand Up @@ -76,6 +76,11 @@ Feature: EPUB 2 ▸ Open Publication Structure ▸ XHTML Document Checks
Scenario: Verify attributes allowed on `ins` and `del` are not restricted (issue 293)
When checking document 'edit-attributes-valid.xhtml'
Then no errors or warnings are reported

Scenario: Verify `ins` and `del` elements can contain block content
See https://github.com/w3c/epubcheck/issues/1522
When checking document 'edit-block-content-valid.xhtml'
Then no errors or warnings are reported

### Identifiers

Expand Down

0 comments on commit d916df0

Please sign in to comment.