Skip to content

Commit 4b15d1f

Browse files
dandclarkannevk
andauthored
Editorial: split attachShadow element list into separate definition (#1200)
* Split attachShadow element list into separate definition so it can be referenced from EditContext spec * Stray newline * Change to `valid shadow host name` Co-authored-by: Anne van Kesteren <[email protected]> * Update name in other location * Export the new `<dfn>`. Co-authored-by: Anne van Kesteren <[email protected]> * nits --------- Co-authored-by: Anne van Kesteren <[email protected]>
1 parent 6c02df2 commit 4b15d1f

File tree

1 file changed

+26
-27
lines changed

1 file changed

+26
-27
lines changed

dom.bs

Lines changed: 26 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -6809,39 +6809,38 @@ are:
68096809
<a for=/>shadow root</a>'s <a for=ShadowRoot>mode</a> is "<code>open</code>", and null otherwise.
68106810
</dl>
68116811

6812+
<p>A <dfn export>valid shadow host name</dfn> is:
6813+
6814+
<ul class=brief>
6815+
<li>a <a>valid custom element name</a>
6816+
<li>"<code>article</code>",
6817+
"<code>aside</code>",
6818+
"<code>blockquote</code>",
6819+
"<code>body</code>",
6820+
"<code>div</code>",
6821+
"<code>footer</code>",
6822+
"<code>h1</code>",
6823+
"<code>h2</code>",
6824+
"<code>h3</code>",
6825+
"<code>h4</code>",
6826+
"<code>h5</code>",
6827+
"<code>h6</code>",
6828+
"<code>header</code>",
6829+
"<code>main</code>",
6830+
"<code>nav</code>",
6831+
"<code>p</code>",
6832+
"<code>section</code>", or
6833+
"<code>span</code>"
6834+
</ul>
6835+
68126836
<p>The <dfn method for=Element><code>attachShadow(<var>init</var>)</code></dfn> method steps are:
68136837

68146838
<ol>
68156839
<li><p>If <a>this</a>'s <a for=Element>namespace</a> is not the <a>HTML namespace</a>,
68166840
then <a>throw</a> a "{{NotSupportedError!!exception}}" {{DOMException}}.
68176841

6818-
<li>
6819-
<p>If <a>this</a>'s <a for=Element>local name</a> is not one of the following:
6820-
6821-
<ul class=brief>
6822-
<li>a <a>valid custom element name</a>
6823-
<li>"<code>article</code>",
6824-
"<code>aside</code>",
6825-
"<code>blockquote</code>",
6826-
"<code>body</code>",
6827-
"<code>div</code>",
6828-
"<code>footer</code>",
6829-
"<code>h1</code>",
6830-
"<code>h2</code>",
6831-
"<code>h3</code>",
6832-
"<code>h4</code>",
6833-
"<code>h5</code>",
6834-
"<code>h6</code>",
6835-
"<code>header</code>",
6836-
"<code>main</code>",
6837-
"<code>nav</code>",
6838-
"<code>p</code>",
6839-
"<code>section</code>", or
6840-
"<code>span</code>"
6841-
</ul>
6842-
6843-
<p>then <a>throw</a> a "{{NotSupportedError!!exception}}" {{DOMException}}.
6844-
</li>
6842+
<li><p>If <a>this</a>'s <a for=Element>local name</a> is not a <a>valid shadow host name</a>, then
6843+
<a>throw</a> a "{{NotSupportedError!!exception}}" {{DOMException}}.
68456844

68466845
<li>
68476846
<p>If <a>this</a>'s <a for=Element>local name</a> is a <a>valid custom element name</a>, or

0 commit comments

Comments
 (0)