Skip to content

Commit

Permalink
Navigate: use URL's equals concept to compare URLs
Browse files Browse the repository at this point in the history
Also stop brokenly parsing URLs that are already records and assumed to be records elsewhere.
  • Loading branch information
annevk committed May 30, 2016
1 parent 6561250 commit f3c2a30
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions source
Expand Up @@ -2746,6 +2746,7 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d
<li>The <dfn data-noexport="" data-x-href="https://url.spec.whatwg.org/#concept-host-parser">host parser</dfn>
<li>The <dfn data-noexport="" data-x="host serialiser" data-x-href="https://url.spec.whatwg.org/#concept-host-serializer">host serialiser</dfn>
<li><dfn data-noexport="" data-x-href="https://url.spec.whatwg.org/#concept-host-equals">Host equals</dfn>
<li><dfn data-x="concept-url-equals" data-noexport="" data-x-href="https://url.spec.whatwg.org/#concept-url-equals">URL equals</dfn>
<li><dfn data-noexport="" data-x="serialise an integer" data-x-href="https://url.spec.whatwg.org/#serialize-an-integer">serialise an integer</dfn>
<li><dfn data-noexport="" data-x-href="https://url.spec.whatwg.org/#default-encode-set">Default encode set</dfn>
<li><dfn data-noexport="" data-x-href="https://url.spec.whatwg.org/#percent-encode">Percent encode</dfn>
Expand Down Expand Up @@ -81436,15 +81437,12 @@ State: &lt;OUTPUT NAME=I>1&lt;/OUTPUT> &lt;INPUT VALUE="Increment" TYPE=BUTTON O
</li>

<li id="navigate-fragid-step"><p><i>Fragments</i>: If this is not a
<dfn>reload-triggered navigation</dfn>: apply the <span>URL parser</span> algorithm to the
<span>absolute URL</span> of <var>resource</var> and the <span
data-x="concept-document-url">URL</span> of the <span>active document</span> of
<var>browsingContext</var>; if all the components of the resulting <span>URL record</span>,
ignoring any <span data-x="concept-url-fragment">fragment</span> components, are identical, and
<var>resource</var> is to be fetched using `<code data-x="">GET</code>`, and the <span>URL
record</span> of <var>resource</var> has a <span data-x="concept-url-fragment">fragment</span>
component that is not null (even if it is empty), then <span data-x="navigate-fragid">navigate to
that fragment</span> and abort these steps.</p></li>
<dfn>reload-triggered navigation</dfn>, <var>resource</var>'s <span>URL</span> <span
data-x="concept-url-equals">equals</span> <var>browsingContext</var>'s
<span>active document</span>'s <span data-x="concept-document-url">URL</span> with <var>exclude
fragments flag</var> set, and <var>resource</var>'s <span>URL</span>'s <span
data-x="concept-url-fragment">fragment</span> is non-null, then <span
data-x="navigate-fragid">navigate to that fragment</span> and abort these steps.</p></li>

<li><p>If <var>gone async</var> is false, cancel any preexisting but not yet <span
data-x="concept-navigate-mature">mature</span> attempt to navigate <var>browsingContext</var>,
Expand Down

0 comments on commit f3c2a30

Please sign in to comment.