File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -74233,7 +74233,12 @@ dictionary <dfn dictionary>ElementDefinitionOptions</dfn> {
74233
74233
74234
74234
<dt><code data-x=""><var>registry</var>.<span subdfn data-x="dom-CustomElementRegistry-initialize">initialize</span>(<var>root</var>)</code></dt>
74235
74235
<dd>Each <span>inclusive descendant</span> of <var>root</var> with a null registry will have it
74236
- updated to this <code>CustomElementRegistry</code> object.</dd>
74236
+ updated to this <code>CustomElementRegistry</code> object. A
74237
+ <span>"<code>NotSupportedError</code>"</span> <code>DOMException</code> will be thrown if this
74238
+ <code>CustomElementRegistry</code> object is not for scoped usage and <var>root</var> is either a
74239
+ <code>Document</code> node or <var>root</var>'s <span>node document</span>'s <span
74240
+ data-x="document-custom-element-registry">custom element registry</span> is not this
74241
+ <code>CustomElementRegistry</code> object.</dd>
74237
74242
</dl>
74238
74243
74239
74244
<p w-nodev>The <dfn
@@ -74582,6 +74587,12 @@ console.assert(el instanceof SpiderMan); // upgraded!</code></pre>
74582
74587
steps are:</p>
74583
74588
74584
74589
<ol>
74590
+ <li><p>If <span>this</span>'s <span>is scoped</span> is false and <var>root</var> is either a
74591
+ <code>Document</code> node or <var>root</var>'s <span>node document</span>'s <span
74592
+ data-x="document-custom-element-registry">custom element registry</span> is not
74593
+ <span>this</span>, then throw a <span>"<code>NotSupportedError</code>"</span>
74594
+ <code>DOMException</code>.</p></li>
74595
+
74585
74596
<li><p>If <var>root</var> is a <code>Document</code> node whose <span
74586
74597
data-x="document-custom-element-registry">custom element registry</span> is null, then set
74587
74598
<var>root</var>'s <span data-x="document-custom-element-registry">custom element registry</span>
You can’t perform that action at this time.
0 commit comments