Skip to content

Commit ae688ea

Browse files
TimothyGuannevk
authored andcommitted
document.open(): remove fragment before propagating entry document's URL
This is another part of the effort to overhaul document.open() as outlined in #3818. Tests: web-platform-tests/wpt#10817. Fixes #2555.
1 parent 7d21798 commit ae688ea

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

source

+14-3
Original file line numberDiff line numberDiff line change
@@ -90985,9 +90985,20 @@ document.body.appendChild(frame)</code></pre>
9098590985
<li><p><span data-x="concept-node-replace-all">Replace all</span> with null within
9098690986
<var>document</var>, without firing any mutation events.</p></li>
9098790987

90988-
<li><p>If <var>document</var> is <span>fully active</span>, then run the <span>URL and history
90989-
update steps</span> with <var>document</var> and <var>entryDocument</var>'s <span
90990-
data-x="concept-document-url">URL</span>.</p></li>
90988+
<li>
90989+
<p>If <var>document</var> is <span>fully active</span>, then:</p>
90990+
90991+
<ol>
90992+
<li><p>Let <var>newURL</var> be a copy of <var>entryDocument</var>'s <span
90993+
data-x="concept-document-url">URL</span>.</p></li>
90994+
90995+
<li><p>If <var>entryDocument</var> is not <var>document</var>, then set <var>newURL</var>'s
90996+
<span data-x="concept-url-fragment">fragment</span> to null.</p></li>
90997+
90998+
<li><p>Run the <span>URL and history update steps</span> with <var>document</var> and
90999+
<var>newURL</var>.</p></li>
91000+
</ol>
91001+
</li>
9099191002

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

0 commit comments

Comments
 (0)