Skip to content

Commit

Permalink
Make document URL optional in processing manifest.
Browse files Browse the repository at this point in the history
  • Loading branch information
mgiuca committed Jun 15, 2018
1 parent 761c850 commit a0e290c
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1396,9 +1396,9 @@ <h3>
following algorithm. The algorithm takes a <a>string</a>
<var>text</var> as an argument, which represents a <a>manifest</a>,
and a <a>URL</a> <var>manifest URL</var>, which represents the
location of the manifest, and a <a>URL</a> <var>document URL</var>.
The output from inputting an JSON document into this algorithm is a
<dfn>processed manifest</dfn>.
location of the manifest, and an optional <a>URL</a> <var>document
URL</var>. The output from inputting an JSON document into this
algorithm is a <dfn>processed manifest</dfn>.
</p>
<p class="issue">
We need to catch throws associated with enumerations in IDL
Expand Down Expand Up @@ -1946,15 +1946,16 @@ <h3>
The steps for <dfn>processing the <code>start_url</code> member</dfn>
are given by the following algorithm. The algorithm takes a
<a>USVString</a> <var>value</var>, a <a>URL</a> <var>manifest
URL</var>, and a <a>URL</a> <var>document URL</var>. This algorithm
returns a <a>URL</a>.
URL</var>, and an optional <a>URL</a> <var>document URL</var>. This
algorithm returns a <a>URL</a>.
</p>
<ol>
<li>If <var>manifest URL</var> is <a>same origin</a> as <var>document
URL</var>, let <var>default</var> be the result of <a>parsing</a>
".", using <var>manifest URL</var> as the <var>base</var> URL.
<li>If <var>document URL</var> is given, and <var>manifest URL</var>
is not <a>same origin</a> as <var>document URL</var>, let
<var>default</var> be <var>document URL</var>.
</li>
<li>Otherwise, let <var>default</var> be <var>document URL</var>.
<li>Otherwise, let <var>default</var> be the result of <a>parsing</a>
".", using <var>manifest URL</var> as the <var>base</var> URL.
</li>
<li>If <var>value</var> is the empty <a>string</a>, return
<var>default</var>.
Expand All @@ -1972,8 +1973,8 @@ <h3>
</li>
</ol>
</li>
<li>If <var>start URL</var> is not <a>same origin</a> as
<var>document URL</var>:
<li>If <var>document URL</var> is given, and <var>start URL</var> is
not <a>same origin</a> as <var>document URL</var>:
<ol>
<li>
<a>Issue a developer warning</a> that the <a>start_url</a>
Expand Down

0 comments on commit a0e290c

Please sign in to comment.