Skip to content

Commit

Permalink
Updates to include manuallyAssignedNodes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Yu Han committed May 14, 2020
1 parent c62252e commit 4998818
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions dom.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2195,24 +2195,9 @@ steps:</p>
<li><p>If the <i>open flag</i> is set and <var>shadow</var>'s <a for=ShadowRoot>mode</a> is
<em>not</em> "<code>open</code>", then return null.</p></li>

<li><p>If the shadow's <a for=ShadowRoot>slot assignment</a> is set to "<code>manual</code>", then:</p>
<ol>
<li><p>Let <var>manuallyAssignedNodes</var> be nodes that are
<a href="https://html.spec.whatwg.org/multipage/scripting.html#dom-slot-assign"><code>assigned</code></a>
to a <a>slot</a> in <var>shadow</var>'s <a for=tree>descendants</a>.</p></li>

<li><p>If <var>nodeSlotMap</var> doesn't exists, let <var>nodeSlotMap</var> be an empty <a for=/>map</a>.</p></li>

<li><p>For each <var>node</var> in <var>manuallyAssignedNodes</var>, set <var>nodeSlotMap[node]</var>
to <a>slot</a>.</p></li>

<li><p>Set <var>manuallyAssignedNodes</var> to empty list.</p></li>

<li><p>If <var>nodeSlotMap[slottable]</var> exists, then return <var>nodeSlotMap[slottable]</var>.</p></li>

<li><p>Return null.</p></li>
</ol>
</li>
<li><p>If the <var>shadow</var>'s <a for=ShadowRoot>slot assignment</a> is set to "<code>manual</code>",
return the associated slot in <var>shadow</var>'s tree whose <a>manuallyAssignedNodes</a> includes
<var>slottable</var>, if any, and null otherwise.</p></li>

<li><p>Return the first <a>slot</a> in <a>tree order</a> in <var>shadow</var>'s
<a for=tree>descendants</a> whose <a for=slot>name</a> is <var>slottable</var>'s
Expand Down

0 comments on commit 4998818

Please sign in to comment.