Skip to content

Commit bcdab96

Browse files
committed
Use "NotSupportedError" when trying to attachShadow() twice
Discussed in #760. This makes the various cases less distinguishable, which is desirable. With this change, all three cases behave the same between: - A custom element with disabled-shadow - A custom element with a shadow tree - A built-in element on the blocklist
1 parent e4e0ea8 commit bcdab96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dom.bs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6768,7 +6768,7 @@ invoked, must run these steps:
67686768
"<code>span</code>", then <a>throw</a> a "{{NotSupportedError!!exception}}" {{DOMException}}.
67696769

67706770
<li><p>If <a>context object</a> is a <a for=Element>shadow host</a>, then <a>throw</a> an
6771-
"{{InvalidStateError!!exception}}" {{DOMException}}.
6771+
"{{NotSupportedError!!exception}}" {{DOMException}}.
67726772

67736773
<li><p>Let <var>shadow</var> be a new <a for=/>shadow root</a> whose <a for=Node>node document</a>
67746774
is <a>context object</a>'s <a for=Node>node document</a>, <a for=DocumentFragment>host</a> is

0 commit comments

Comments
 (0)