Skip to content

Commit

Permalink
[Issue WICG#128, WICG#289] Introduce a slot name and a default slot.
Browse files Browse the repository at this point in the history
  • Loading branch information
hayatoito authored and kojiishi committed Sep 7, 2015
1 parent 22d0e8f commit 0d1cfb0
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion spec/shadow/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,16 @@ <h3>Slots</h3>
<li>The <a>root</a> <a>node</a> of the <a>slot element</a> is a <a>shadow root</a></li>
<li>There is no other <a>slot element</a> in the <a lt="ancestor">ancestors</a> of the <a>slot element</a></li>
</ul>

<p>
A <dfn>slot name</dfn> is the name of a <a>slot</a>.
</p>

<p>
A <dfn>default slot</dfn> is a slot that doesn't have a <a>slot name</a>.
If there are more than one slots which doen't have a <a>slot name</a> in the same <a>shadow tree</a>, the most <a>preceding</a> one is the <a>default slot</a>. The others are not.
</p>

</section>

<section>
Expand Down Expand Up @@ -1399,7 +1409,7 @@ <h3>The <code>slot</code> element</h3>
<dd><a>Global attributes</a></dd>
<dd>
<dl>
<dt><code><dfn lt="slot name">name</dfn></code>, the name of the slot</dt>
<dt><code>name</dfn></code>, the <a>slot name</a></dt>
<dd>Represents the <a>slot name</a>.</dd>
</dl>
</dd>
Expand Down

0 comments on commit 0d1cfb0

Please sign in to comment.