Skip to content

Commit

Permalink
document.open(): remove fragment before propagating entry document's URL
Browse files Browse the repository at this point in the history
  • Loading branch information
TimothyGu committed Aug 28, 2018
1 parent 7d21798 commit 064d435
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -90985,9 +90985,20 @@ document.body.appendChild(frame)</code></pre>
<li><p><span data-x="concept-node-replace-all">Replace all</span> with null within
<var>document</var>, without firing any mutation events.</p></li>

<li><p>If <var>document</var> is <span>fully active</span>, then run the <span>URL and history
update steps</span> with <var>document</var> and <var>entryDocument</var>'s <span
data-x="concept-document-url">URL</span>.</p></li>
<li>
<p>If <var>document</var> is <span>fully active</span>, then:</p>

<ol>
<li><p>Let <var>newURL</var> be a copy of <var>entryDocument</var>'s <span
data-x="concept-document-url">URL</span>.</p></li>

<li><p>If <var>entryDocument</var> is not <var>document</var>, then set <var>newURL</var>'s
<span data-x="concept-url-fragment">fragment</span> to null.</p></li>

<li><p>Run the <span>URL and history update steps</span> with <var>document</var> and
<var>newURL</var>.</p></li>
</ol>
</li>

<!-- <span>the document's referrer</span> stays the same -->

Expand Down

0 comments on commit 064d435

Please sign in to comment.