Skip to content

Commit 5dfdacf

Browse files
author
curation-bot
committed
Publish curated data from 6d8d91b
Curated data generated from raw data at 6d8d91b
1 parent ad43190 commit 5dfdacf

File tree

6 files changed

+321
-276
lines changed

6 files changed

+321
-276
lines changed

ed/algorithms/epub-34.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"html": "<p>Set the <a data-link-type=\"dfn|abstract-op\" href=\"https://w3c.github.io/epub-specs/epub34/authoring/#dfn-container-root-url\" class=\"internalDFN\" id=\"ref-for-dfn-container-root-url-6\">container root URL</a> to <code>https://a.example.org/A/</code>.</p>\n\t\t\t\t\t\t\t<details class=\"explanation\">\n\t\t\t\t\t\t\t\t<summary>Explanation</summary>\n\t\t\t\t\t\t\t\t<p>The goal of the algorithm is to detect whether <var>url</var> could be seen as\n\t\t\t\t\t\t\t\t\t\"leaking\" outside the container. To do that, the standard <a data-link-type=\"dfn\" data-lt=\"url parser\" data-cite=\"url\" data-cite-path=\"\" data-cite-frag=\"concept-url-parser\" href=\"https://url.spec.whatwg.org/#concept-url-parser\" id=\"ref-for-index-term-url-parser-4\">URL parsing algorithm</a> is used with an artificial root URL; the detection of the \"leak\" is done\n\t\t\t\t\t\t\t\t\tby comparing the result of the parsing with the presence of the first test path\n\t\t\t\t\t\t\t\t\tsegment (<code>A</code>). (Note that the artificial container root URL wilfully\n\t\t\t\t\t\t\t\t\tviolates, for the purpose of this algorithm, the <a href=\"https://w3c.github.io/epub-specs/epub34/authoring/#sec-root-url-properties\">required properties</a> by using that first test path segment.)</p>\n\t\t\t\t\t\t\t</details>"
4848
},
4949
{
50-
"html": "<p>Let <var>base</var> be the <a data-cite=\"url#concept-base-url\" href=\"https://url.spec.whatwg.org/#concept-base-url\" id=\"ref-for-index-term-base-4\">base URL</a> that must be\n\t\t\t\t\t\t\t\tused to parse <var>url</var> as defined by the context (document or environment) where\n\t\t\t\t\t\t\t\t\t<var>url</var> is used, and according to the content URL of the <a data-link-type=\"dfn|abstract-op\" href=\"https://w3c.github.io/epub-specs/epub34/authoring/#dfn-package-document\" class=\"internalDFN\" id=\"ref-for-dfn-package-document-16\">package document</a>\n\t\t\t\t\t\t\t\t(see <a href=\"https://w3c.github.io/epub-specs/epub34/authoring/#sec-parse-package-urls\" class=\"sec-ref\"><bdi class=\"secno\">5.2 </bdi>Parsing URLs in the package document</a>).</p>\n\t\t\t\t\t\t\t<details class=\"explanation\">\n\t\t\t\t\t\t\t\t<summary>Explanation</summary>\n\t\t\t\t\t\t\t\t<p>In the case of a URL in the package document the <var>base</var> variable is set to\n\t\t\t\t\t\t\t\t\tthe content URL of the package document. In the case of a document within the\n\t\t\t\t\t\t\t\t\t\t<code>META-INF</code> directory, the <var>base</var> variable is set to the\n\t\t\t\t\t\t\t\t\tcontainer root URL (see <a href=\"https://w3c.github.io/epub-specs/epub34/authoring/#sec-parsing-urls-metainf\" class=\"sec-ref\"><bdi class=\"secno\">4.2.6.2 </bdi>Parsing URLs in the <code>META-INF</code> directory</a>). In the case of a\n\t\t\t\t\t\t\t\t\tURL in an <a data-link-type=\"dfn|abstract-op\" href=\"https://w3c.github.io/epub-specs/epub34/authoring/#dfn-xhtml-content-document\" class=\"internalDFN\" id=\"ref-for-dfn-xhtml-content-document-10\">XHTML content document</a>, the base URL used for parsing is defined by\n\t\t\t\t\t\t\t\t\tthe <a data-cite=\"html#resolving-urls\" href=\"https://html.spec.whatwg.org/multipage/#resolving-urls\" id=\"ref-for-index-term-html-standard-1\">HTML standard</a>. Typically, it will be the\n\t\t\t\t\t\t\t\t\tcontent URL of the content document (unless the <a href=\"https://w3c.github.io/epub-specs/epub34/authoring/#sec-xhtml-deviations-base\">discouraged</a>\n\t\t\t\t\t\t\t\t\t<code>base</code> element is used).</p>\n\t\t\t\t\t\t\t</details>"
50+
"html": "<p>Let <var>base</var> be the <a data-cite=\"url#concept-base-url\" href=\"https://url.spec.whatwg.org/#concept-base-url\" id=\"ref-for-index-term-base-4\">base URL</a> that must be\n\t\t\t\t\t\t\t\tused to parse <var>url</var> as defined by the context (document or environment) where\n\t\t\t\t\t\t\t\t\t<var>url</var> is used, and according to the content URL of the <a data-link-type=\"dfn|abstract-op\" href=\"https://w3c.github.io/epub-specs/epub34/authoring/#dfn-package-document\" class=\"internalDFN\" id=\"ref-for-dfn-package-document-16\">package document</a>\n\t\t\t\t\t\t\t\t(see <a href=\"https://w3c.github.io/epub-specs/epub34/authoring/#sec-parse-package-urls\" class=\"sec-ref\"><bdi class=\"secno\">5.2 </bdi>Parsing URLs in the package document</a>).</p>\n\t\t\t\t\t\t\t<details class=\"explanation\">\n\t\t\t\t\t\t\t\t<summary>Explanation</summary>\n\t\t\t\t\t\t\t\t<p>In the case of a URL in the package document the <var>base</var> variable is set to\n\t\t\t\t\t\t\t\t\tthe content URL of the package document. In the case of a document within the\n\t\t\t\t\t\t\t\t\t\t<code>META-INF</code> directory, the <var>base</var> variable is set to the\n\t\t\t\t\t\t\t\t\tcontainer root URL (see <a href=\"https://w3c.github.io/epub-specs/epub34/authoring/#sec-parsing-urls-metainf\" class=\"sec-ref\"><bdi class=\"secno\">4.2.6.2 </bdi>Parsing URLs in the <code>META-INF</code> directory</a>). In the case of a\n\t\t\t\t\t\t\t\t\tURL in an <a data-link-type=\"dfn|abstract-op\" href=\"https://w3c.github.io/epub-specs/epub34/authoring/#dfn-xhtml-content-document\" class=\"internalDFN\" id=\"ref-for-dfn-xhtml-content-document-9\">XHTML content document</a>, the base URL used for parsing is defined by\n\t\t\t\t\t\t\t\t\tthe <a data-cite=\"html#resolving-urls\" href=\"https://html.spec.whatwg.org/multipage/#resolving-urls\" id=\"ref-for-index-term-html-standard-1\">HTML standard</a>. Typically, it will be the\n\t\t\t\t\t\t\t\t\tcontent URL of the content document (unless the <a href=\"https://w3c.github.io/epub-specs/epub34/authoring/#sec-xhtml-deviations-base\">discouraged</a>\n\t\t\t\t\t\t\t\t\t<code>base</code> element is used).</p>\n\t\t\t\t\t\t\t</details>"
5151
},
5252
{
5353
"html": "Let <var>testURLRecord</var> be the result of applying the <a data-link-type=\"dfn\" data-cite=\"url\" data-cite-path=\"\" data-cite-frag=\"concept-url-parser\" href=\"https://url.spec.whatwg.org/#concept-url-parser\" id=\"ref-for-index-term-url-parser-5\">URL parser</a> to <var>url</var>,\n\t\t\t\t\t\t\twith <var>base</var>."

ed/dfns/epub-34.json

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -490,13 +490,34 @@
490490
"definedIn": "dt",
491491
"links": []
492492
},
493+
{
494+
"id": "dfn-html-content-document",
495+
"href": "https://w3c.github.io/epub-specs/epub34/authoring/#dfn-html-content-document",
496+
"linkingText": [
497+
"HTML content document"
498+
],
499+
"localLinkingText": [],
500+
"type": "dfn",
501+
"for": [],
502+
"access": "public",
503+
"informative": false,
504+
"heading": {
505+
"id": "sec-terminology",
506+
"href": "https://w3c.github.io/epub-specs/epub34/authoring/#sec-terminology",
507+
"title": "Terminology",
508+
"alternateIds": [
509+
"x1-4-terminology"
510+
],
511+
"number": "1.4"
512+
},
513+
"definedIn": "dt",
514+
"links": []
515+
},
493516
{
494517
"id": "dfn-xhtml-content-document",
495518
"href": "https://w3c.github.io/epub-specs/epub34/authoring/#dfn-xhtml-content-document",
496519
"linkingText": [
497-
"xhtml content document",
498-
"xhtml content documents",
499-
"HTML content document"
520+
"XHTML content document"
500521
],
501522
"localLinkingText": [],
502523
"type": "dfn",

0 commit comments

Comments
 (0)