Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 6 additions & 10 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -144549,10 +144549,12 @@ dictionary <dfn dictionary>StorageEventInit</dfn> : <span>EventInit</span> {

<div algorithm>
<p>To <dfn>insert an element at the adjusted insertion location</dfn> with an element
<var>element</var>:</p>
<var>element</var> and an optional insertion location <var>insertionLocation</var> (default
null):</p>

<ol>
<li><p>Let <var>insertionLocation</var> be the <span>adjusted insertion location</span>.</p></li>
<li><p>Set <var>insertionLocation</var> to the <span>adjusted insertion location</span> given
<var>insertionLocation</var>.</p></li>

<li><p>If it is not possible to insert <var>element</var> at <var>insertionLocation</var>, abort
these steps.</p></li>
Expand Down Expand Up @@ -145385,12 +145387,6 @@ document.body.appendChild(text);
<li><p>Let the <var>adjustedInsertionLocation</var> be the <span>appropriate place for
inserting a node</span>.</p></li>

<li><p>Let <var>intendedParent</var> be the element in which the
<var>adjustedInsertionLocation</var> finds itself.</p></li>

<li><p>Let <var>document</var> be <var>intendedParent</var>'s <span>node
document</span>.</p></li>

<li>
<p>If any of the following are false:</p>

Expand Down Expand Up @@ -145442,7 +145438,7 @@ document.body.appendChild(text);

<li><p>If <var>declarativeShadowHostElement</var> is a <span>shadow host</span>, then
<span>insert an element at the adjusted insertion location</span> with
<var>template</var>.</p></li>
<var>template</var> and <var>adjustedInsertionLocation</var>.</p></li>

<li>
<p>Otherwise:</p>
Expand All @@ -145463,7 +145459,7 @@ document.body.appendChild(text);

<ol>
<li><p><span>Insert an element at the adjusted insertion location</span> with
<var>template</var>.</p></li>
<var>template</var> and <var>adjustedInsertionLocation</var>.</p></li>

<li><p>The user agent may report an error to the developer console.</p></li>

Expand Down
Loading