Skip to content

Commit 6714ff1

Browse files
committed
Preserve reference child in insertion redirection for foster parenting
1 parent 5d61b72 commit 6714ff1

1 file changed

Lines changed: 22 additions & 3 deletions

File tree

source

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144474,9 +144474,28 @@ dictionary <dfn dictionary>StorageEventInit</dfn> : <span>EventInit</span> {
144474144474
<li><p>Let <var>targetParent</var> be the node in which <var>adjustedInsertionLocation</var>
144475144475
finds itself.</p></li>
144476144476

144477-
<li><p>If the parser's <span>insertion target redirection map</span>[<var>targetParent</var>]
144478-
<span data-x="map exists">exists</span>, then set <var>adjustedInsertionLocation</var> to
144479-
that.</p></li>
144477+
<li>
144478+
<p>If the parser's <span>insertion target redirection map</span>[<var>targetParent</var>]
144479+
<span data-x="map exists">exists</span>, then:</p>
144480+
144481+
<ol>
144482+
<li><p>Let <var>redirectedLocation</var> be the parser's <span>insertion target redirection
144483+
map</span>[<var>targetParent</var>].</p></li>
144484+
144485+
<li><p>Let <var>redirectedParent</var> be the node in which <var>redirectedLocation</var>
144486+
finds itself.</p></li>
144487+
144488+
<li>
144489+
<p>If <var>adjustedInsertionLocation</var> is immediately before a node
144490+
<var>referenceChild</var>, and <var>referenceChild</var>'s parent node is
144491+
<var>redirectedParent</var>, then set <var>adjustedInsertionLocation</var> to inside
144492+
<var>redirectedParent</var>, immediately before <var>referenceChild</var>.</p>
144493+
</li>
144494+
144495+
<li><p>Otherwise, set <var>adjustedInsertionLocation</var> to
144496+
<var>redirectedLocation</var>.</p></li>
144497+
</ol>
144498+
</li>
144480144499

144481144500
<li><p>Return <var>adjustedInsertionLocation</var>.</p></li>
144482144501
</ol>

0 commit comments

Comments
 (0)