Skip to content

Commit 26b73e9

Browse files
committed
Allow passing null for customElementRegistry
Apparently people are passing a ShadowRoot instance as the argument to attachShadow(). Context: https://bugs.webkit.org/show_bug.cgi?id=295174. We'll add tests as part of fixing this in WebKit.
1 parent 7792009 commit 26b73e9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dom.bs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6598,7 +6598,7 @@ dictionary ShadowRootInit {
65986598
SlotAssignmentMode slotAssignment = "named";
65996599
boolean clonable = false;
66006600
boolean serializable = false;
6601-
CustomElementRegistry customElementRegistry;
6601+
CustomElementRegistry customElementRegistry? = null;
66026602
};
66036603
</pre>
66046604

@@ -7509,8 +7509,8 @@ are:
75097509
<ol>
75107510
<li><p>Let <var>registry</var> be <a>this</a>'s <a for=Element>custom element registry</a>.
75117511

7512-
<li><p>If <var>init</var>["{{ShadowRootInit/customElementRegistry}}"] <a for=map>exists</a>, then
7513-
set <var>registry</var> to it.
7512+
<li><p>If <var>init</var>["{{ShadowRootInit/customElementRegistry}}"] is non-null, then set
7513+
<var>registry</var> to it.
75147514

75157515
<li><p>Run <a>attach a shadow root</a> with <a>this</a>,
75167516
<var>init</var>["{{ShadowRootInit/mode}}"], <var>init</var>["{{ShadowRootInit/clonable}}"],

0 commit comments

Comments
 (0)