Skip to content

Commit daa525d

Browse files
tkent-googledomenic
authored andcommitted
Add "disable shadow" flag check to element.attachShadow()
This was discussed as part of WICG/webcomponents#758, and integrates with whatwg/html#4324.
1 parent bcdab96 commit daa525d

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

dom.bs

+18
Original file line numberDiff line numberDiff line change
@@ -6767,6 +6767,23 @@ invoked, must run these steps:
67676767
"<code>section</code>", or
67686768
"<code>span</code>", then <a>throw</a> a "{{NotSupportedError!!exception}}" {{DOMException}}.
67696769

6770+
<li>
6771+
<p>If <a>context object</a>'s <a for=Element>local name</a> is a
6772+
<a>valid custom element name</a>, or <a>context object</a>'s
6773+
<a for=Element><code>is</code> value</a> is not null, then:
6774+
6775+
<ol>
6776+
<li><p>Let <var>definition</var> be the result of
6777+
<a lt="look up a custom element definition">looking up a custom element definition</a> given
6778+
<a>context object</a>'s <a for=Node>node document</a>, its <a for=Element>namespace</a>, its
6779+
<a for=Element>local name</a>, and its <a for=Element><code>is</code> value</a>.
6780+
6781+
<li><p>If <var>definition</var> is not null and <var>definition</var>'s
6782+
<a for="custom element definition">disable shadow</a> is true, then <a>throw</a> a
6783+
"{{NotSupportedError!!exception}}" {{DOMException}}.
6784+
</ol>
6785+
</li>
6786+
67706787
<li><p>If <a>context object</a> is a <a for=Element>shadow host</a>, then <a>throw</a> an
67716788
"{{NotSupportedError!!exception}}" {{DOMException}}.
67726789

@@ -10034,6 +10051,7 @@ J. S. Choi,
1003410051
Jungkee Song,
1003510052
Justin Summerlin,
1003610053
呂康豪 (Kang-Hao Lu),
10054+
田村健人 (Kent TAMURA),
1003710055
Kevin Sweeney,
1003810056
Kirill Topolyan,
1003910057
Koji Ishii,

0 commit comments

Comments
 (0)