File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -6598,10 +6598,14 @@ dictionary ShadowRootInit {
6598
6598
SlotAssignmentMode slotAssignment = "named";
6599
6599
boolean clonable = false;
6600
6600
boolean serializable = false;
6601
- CustomElementRegistry customElementRegistry;
6601
+ CustomElementRegistry? customElementRegistry = null ;
6602
6602
};
6603
6603
</pre>
6604
6604
6605
+ <p class=note> {{ShadowRootInit}} somewhat unusually allows both <code> undefined</code> and
6606
+ <code> null</code> to be passed to its {{ShadowRootInit/customElementRegistry}} member to allow web
6607
+ developers to pass a {{ShadowRoot}} node instead of a dictionary to {{Element/attachShadow()}} .
6608
+
6605
6609
<p> {{Element}} <a for=/>nodes</a> are simply known as
6606
6610
<dfn export id=concept-element lt=element>elements</dfn> .
6607
6611
@@ -7509,8 +7513,8 @@ are:
7509
7513
<ol>
7510
7514
<li><p> Let <var> registry</var> be <a>this</a> 's <a for=Element>custom element registry</a> .
7511
7515
7512
- <li><p> If <var> init</var> ["{{ShadowRootInit/customElementRegistry}}"] <a for=map>exists</a> , then
7513
- set <var> registry</var> to it.
7516
+ <li><p> If <var> init</var> ["{{ShadowRootInit/customElementRegistry}}"] is non-null , then set
7517
+ <var> registry</var> to it.
7514
7518
7515
7519
<li><p> Run <a>attach a shadow root</a> with <a>this</a> ,
7516
7520
<var> init</var> ["{{ShadowRootInit/mode}}"] , <var> init</var> ["{{ShadowRootInit/clonable}}"] ,
You can’t perform that action at this time.
0 commit comments