+53
-1
lines changedFilter options
+53
-1
lines changed Original file line number Diff line number Diff line change
@@ -131,7 +131,7 @@ public String relativize(URL url)
131
131
public boolean isRemote(URL url)
132
132
{
133
133
Preconditions.checkArgument(url != null, "URL is null");
134
-
if (!url.isHierarchical() || contains(url))
134
+
if ("data".equals(url.scheme()) || contains(url))
135
135
{
136
136
return false;
137
137
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
1
+
<!DOCTYPE html>
2
+
<html xmlns:epub="http://www.idpf.org/2007/ops" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
3
+
<head>
4
+
<meta charset="utf-8"/>
5
+
<title>Minimal EPUB</title>
6
+
</head>
7
+
<body>
8
+
<h1>Loomings</h1>
9
+
<p>Call me <a href="mailto:ishmael@example.org">Ishmael</a>.</p>
10
+
</body>
11
+
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
1
+
<!DOCTYPE html>
2
+
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" xml:lang="en" lang="en">
3
+
<head>
4
+
<meta charset="utf-8"/>
5
+
<title>Minimal Nav</title>
6
+
</head>
7
+
<body>
8
+
<nav epub:type="toc">
9
+
<ol>
10
+
<li><a href="content_001.xhtml">content 001</a></li>
11
+
</ol>
12
+
</nav>
13
+
</body>
14
+
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
1
+
<?xml version="1.0" encoding="UTF-8"?>
2
+
<package xmlns="http://www.idpf.org/2007/opf" version="3.0" xml:lang="en" unique-identifier="q">
3
+
<metadata xmlns:dc="http://purl.org/dc/elements/1.1/">
4
+
<dc:title id="title">Minimal EPUB 3.0</dc:title>
5
+
<dc:language>en</dc:language>
6
+
<dc:identifier id="q">NOID</dc:identifier>
7
+
<meta property="dcterms:modified">2017-06-14T00:00:01Z</meta>
8
+
</metadata>
9
+
<manifest>
10
+
<item id="content_001" href="content_001.xhtml" media-type="application/xhtml+xml"/>
11
+
<item id="nav" href="nav.xhtml" media-type="application/xhtml+xml" properties="nav"/>
12
+
</manifest>
13
+
<spine>
14
+
<itemref idref="content_001" />
15
+
</spine>
16
+
</package>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
1
+
<?xml version="1.0" encoding="UTF-8" ?>
2
+
<container version="1.0" xmlns="urn:oasis:names:tc:opendocument:xmlns:container">
3
+
<rootfiles>
4
+
<rootfile full-path="EPUB/package.opf" media-type="application/oebps-package+xml"/>
5
+
</rootfiles>
6
+
</container>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
+
application/epub+zip
Original file line number Diff line number Diff line change
@@ -490,6 +490,10 @@
490
490
Then warning RSC-031 is reported 3 times
491
491
And no other errors or warnings are reported
492
492
493
+
Scenario: Allow `mailto` URLs, do not process them as resources
494
+
When checking document 'mailto-url-valid'
495
+
Then no errors or warnings are reported
496
+
493
497
## 3.7 Data URLs
494
498
495
499
@spec @xref:sec-data-urls
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4