Skip to content

Commit dabfd01

Browse files
TimothyGumustaqahmed
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 whatwg#3818. Tests: web-platform-tests/wpt#10817. Fixes whatwg#2555.
1 parent bdc7928 commit dabfd01

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
@@ -91043,9 +91043,20 @@ document.body.appendChild(frame)</code></pre>
9104391043
<li><p><span data-x="concept-node-replace-all">Replace all</span> with null within
9104491044
<var>document</var>, without firing any mutation events.</p></li>
9104591045

91046-
<li><p>If <var>document</var> is <span>fully active</span>, then run the <span>URL and history
91047-
update steps</span> with <var>document</var> and <var>entryDocument</var>'s <span
91048-
data-x="concept-document-url">URL</span>.</p></li>
91046+
<li>
91047+
<p>If <var>document</var> is <span>fully active</span>, then:</p>
91048+
91049+
<ol>
91050+
<li><p>Let <var>newURL</var> be a copy of <var>entryDocument</var>'s <span
91051+
data-x="concept-document-url">URL</span>.</p></li>
91052+
91053+
<li><p>If <var>entryDocument</var> is not <var>document</var>, then set <var>newURL</var>'s
91054+
<span data-x="concept-url-fragment">fragment</span> to null.</p></li>
91055+
91056+
<li><p>Run the <span>URL and history update steps</span> with <var>document</var> and
91057+
<var>newURL</var>.</p></li>
91058+
</ol>
91059+
</li>
9104991060

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

0 commit comments

Comments
 (0)