Skip to content

Commit 3a1e84a

Browse files
committed
Make document URL optional in processing manifest.
1 parent 8578986 commit 3a1e84a

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

index.html

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1429,9 +1429,9 @@ <h3>
14291429
following algorithm. The algorithm takes a <a>string</a>
14301430
<var>text</var> as an argument, which represents a <a>manifest</a>,
14311431
and a <a>URL</a> <var>manifest URL</var>, which represents the
1432-
location of the manifest, and a <a>URL</a> <var>document URL</var>.
1433-
The output from inputting an JSON document into this algorithm is a
1434-
<dfn>processed manifest</dfn>.
1432+
location of the manifest, and an optional <a>URL</a> <var>document
1433+
URL</var>. The output from inputting an JSON document into this
1434+
algorithm is a <dfn>processed manifest</dfn>.
14351435
</p>
14361436
<p class="issue">
14371437
We need to catch throws associated with enumerations in IDL
@@ -1979,15 +1979,16 @@ <h3>
19791979
The steps for <dfn>processing the <code>start_url</code> member</dfn>
19801980
are given by the following algorithm. The algorithm takes a
19811981
<a>USVString</a> <var>value</var>, a <a>URL</a> <var>manifest
1982-
URL</var>, and a <a>URL</a> <var>document URL</var>. This algorithm
1983-
returns a <a>URL</a>.
1982+
URL</var>, and an optional <a>URL</a> <var>document URL</var>. This
1983+
algorithm returns a <a>URL</a>.
19841984
</p>
19851985
<ol>
1986-
<li>If <var>manifest URL</var> is <a>same origin</a> as <var>document
1987-
URL</var>, let <var>default</var> be the result of <a>parsing</a>
1988-
".", using <var>manifest URL</var> as the <var>base</var> URL.
1986+
<li>If <var>document URL</var> is given, and <var>manifest URL</var>
1987+
is not <a>same origin</a> as <var>document URL</var>, let
1988+
<var>default</var> be <var>document URL</var>.
19891989
</li>
1990-
<li>Otherwise, let <var>default</var> be <var>document URL</var>.
1990+
<li>Otherwise, let <var>default</var> be the result of <a>parsing</a>
1991+
".", using <var>manifest URL</var> as the <var>base</var> URL.
19911992
</li>
19921993
<li>If <var>value</var> is the empty <a>string</a>, return
19931994
<var>default</var>.
@@ -2005,8 +2006,8 @@ <h3>
20052006
</li>
20062007
</ol>
20072008
</li>
2008-
<li>If <var>start URL</var> is not <a>same origin</a> as
2009-
<var>document URL</var>:
2009+
<li>If <var>document URL</var> is given, and <var>start URL</var> is
2010+
not <a>same origin</a> as <var>document URL</var>:
20102011
<ol>
20112012
<li>
20122013
<a>Issue a developer warning</a> that the <a>start_url</a>

0 commit comments

Comments
 (0)