-
Notifications
You must be signed in to change notification settings - Fork 405
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: disallow data URLs in the package document
EPUB 3.3 now disallows data URLs everywhere in the package document (in both `item` and `link` elements). See w3c/epub-specs#2494 Fix #1446
- Loading branch information
Showing
11 changed files
with
45 additions
and
119 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
37 changes: 0 additions & 37 deletions
37
...sources/files/data-url-in-html-img-foreign-manifest-fallback-valid/EPUB/content_001.xhtml
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-1.92 KB
...rces/files/data-url-in-html-img-foreign-manifest-fallback-valid/EPUB/image.jpeg
Binary file not shown.
14 changes: 0 additions & 14 deletions
14
...b3/03-resources/files/data-url-in-html-img-foreign-manifest-fallback-valid/EPUB/nav.xhtml
This file was deleted.
Oops, something went wrong.
45 changes: 0 additions & 45 deletions
45
.../03-resources/files/data-url-in-html-img-foreign-manifest-fallback-valid/EPUB/package.opf
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
...sources/files/data-url-in-html-img-foreign-manifest-fallback-valid/META-INF/container.xml
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
...es/epub3/03-resources/files/data-url-in-html-img-foreign-manifest-fallback-valid/mimetype
This file was deleted.
Oops, something went wrong.
File renamed without changes.
17 changes: 17 additions & 0 deletions
17
src/test/resources/epub3/03-resources/files/data-url-in-package-link-error.opf
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 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<package xmlns="http://www.idpf.org/2007/opf" version="3.0" xml:lang="en" unique-identifier="q"> | ||
<metadata xmlns:dc="http://purl.org/dc/elements/1.1/"> | ||
<dc:title id="title">Minimal EPUB 3.0</dc:title> | ||
<dc:language>en</dc:language> | ||
<dc:identifier id="q">NOID</dc:identifier> | ||
<meta property="dcterms:modified">2017-06-14T00:00:01Z</meta> | ||
<link rel="alternate" href="data:application/xhtml+xml,%3Ch1%3EHello%3C%2Fh1%3E" media-type="application/xhtml+xml"/> | ||
</metadata> | ||
<manifest> | ||
<item id="nav" href="nav.xhtml" media-type="application/xhtml+xml" properties="nav"/> | ||
<item id="content_001" href="content_001.xhtml" media-type="application/xhtml+xml"/> | ||
</manifest> | ||
<spine> | ||
<itemref idref="content_001"/> | ||
</spine> | ||
</package> |
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