-
Notifications
You must be signed in to change notification settings - Fork 407
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: disallow
epub:type
on head
and metadata content
This PR implements the latest post-CR update on where `epub:type` is allowed in HTML content (i.e. everywhere but the `head` element and metadata content). See w3c/epub-specs#2493 Fix #1444, Fix #1445
- Loading branch information
Showing
8 changed files
with
148 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
src/test/resources/epub3/06-content-document/files/epubtype-disallowed-error.xhtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<!DOCTYPE html> | ||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" | ||
epub:prefix="test: https://example.org/vocab/#" xml:lang="en" lang="en"> | ||
<head epub:type="test:invalid"> | ||
<meta epub:type="test:invalid" charset="utf-8" /> | ||
<title epub:type="test:invalid">epub:type in head element</title> | ||
<meta epub:type="test:invalid" name="creator" content="Herman Melville" /> | ||
<style epub:type="test:invalid"></style> | ||
<link epub:type="test:invalid" type="text/css" rel="stylesheet" href="style.css" /> | ||
</head> | ||
<body> | ||
<script epub:type="test:invalid" src="script.js"></script> | ||
<noscript epub:type="test:invalid">text</noscript> | ||
<h1>Test</h1> | ||
<div></div> | ||
</body> | ||
</html> |
File renamed without changes.
13 changes: 0 additions & 13 deletions
13
...st/resources/epub3/06-content-document/files/epubtype-on-non-palpable-content-error.xhtml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters