@@ -66791,6 +66791,11 @@ dictionary <dfn>ElementDefinitionOptions</dfn> {
6679166791 <li><p>Set this <code>CustomElementRegistry</code>'s <span>element definition is running</span>
6679266792 flag.</p></li>
6679366793
66794+ <li><p>Let <var>disableInternals</var> be false.
66795+
66796+ <li><p>Let <var>observedAttributes</var> be an empty <code
66797+ data-x="">sequence<DOMString></code>.</p></li>
66798+
6679466799 <li>
6679566800 <p>Run the following substeps while catching any exceptions:</p>
6679666801
@@ -66822,9 +66827,6 @@ dictionary <dfn>ElementDefinitionOptions</dfn> {
6682266827 </ol>
6682366828 </li>
6682466829
66825- <li><p>Let <var>observedAttributes</var> be an empty <code
66826- data-x="">sequence<DOMString></code>.</p></li>
66827-
6682866830 <li>
6682966831 <p>If the value of the entry in <var>lifecycleCallbacks</var> with key "<code
6683066832 data-x="">attributeChangedCallback</code>" is not null, then:</p>
@@ -66841,20 +66843,20 @@ dictionary <dfn>ElementDefinitionOptions</dfn> {
6684166843 conversion.</p></li>
6684266844 </ol>
6684366845
66844- <li><p>Let <var>disabledFeatures</var> be
66845- <span data-x="js-Get">Get</span>(<var>constructor</var>, "disabledFeatures"). Rethrow any
66846- exceptions.</p></li>
66846+ <li><p>Let <var>disabledFeatures</var> be an empty <code
66847+ data-x="">sequence<DOMString></code>.</p></li>
6684766848
66848- <li><p>If <var>disabledFeatures</var> is not undefined, then set
66849- <var>disabledFeaturesSequence</var> to the result of
66850- <span data-x="concept-idl-convert">converting</span> <var>disabledFeatures</var> to a
66851- <code data-x="">sequence<DOMString></code>. Rethrow any exceptions from the
66852- conversion.</p></li>
66849+ <li><p>Let <var>disabledFeaturesIterable</var> be <span
66850+ data-x="js-Get">Get</span>(<var>constructor</var>, "disabledFeatures"). Rethrow any
66851+ exceptions.</p></li>
6685366852
66854- <li><p>Let <var>disableInternals</var> be false.
66853+ <li><p>If <var>disabledFeaturesIterable</var> is not undefined, then set
66854+ <var>disabledFeatures</var> to the result of <span
66855+ data-x="concept-idl-convert">converting</span> <var>disabledFeaturesIterable</var> to a <code
66856+ data-x="">sequence<DOMString></code>. Rethrow any exceptions from the conversion.</p></li>
6685566857
6685666858 <li><p>Set <var>disableInternals</var> to true if <var>disabledFeaturesSequence</var> contains
66857- <code data-x="">" internals" </code>.</p></li>
66859+ " <code data-x="">internals</code>" .</p></li>
6685866860 </ol>
6685966861
6686066862 <p>Then, perform the following substep, regardless of whether the above steps threw an exception
@@ -67456,8 +67458,11 @@ customElements.define("x-foo", class extends HTMLElement {
6745667458
6745767459 <dl class="domintro">
6745867460 <dt><var>element</var> . <code subdfn data-x="dom-attachInternals">attachInternals()</code></dt>
67459- <dd><p>Returns an <code>ElementInternals</code> object targeting the <var>element</var>.
67460- This function throws an exception if it is called for the same <var>element</var> again.</p></dd>
67461+
67462+ <dd><p>Returns an <code>ElementInternals</code> object targeting the the <span>custom
67463+ element</span> <var>element</var>. Throws an exception if <var>element</var> is not a
67464+ <span>custom element</span>, if the "<code data-x="">internals</code>" feature was disabled as
67465+ part of the element definition, or if it is called twice on the same element.</p></dd>
6746167466 </dl>
6746267467
6746367468 <pre><code class="idl" data-x="">[Exposed=Window]
@@ -67469,7 +67474,7 @@ interface <dfn>ElementInternals</dfn> {
6746967474
6747067475 <p>Each <code>ElementInternals</code> has a <dfn data-x="internals-target">target element</dfn>,
6747167476 which is a <span>custom element</span>. <code>ElementInternals</code> provides various operations
67472- and attributes to allow control over internals features which the user agent provides to all
67477+ and attributes to allow control over internal features which the user agent provides to all
6747367478 elements.</p>
6747467479
6747567480 <p>Each <code>HTMLElement</code> has an <dfn>attached internals</dfn> boolean, initially
@@ -67479,6 +67484,7 @@ interface <dfn>ElementInternals</dfn> {
6747967484 an <code>HTMLElement</code> <var>element</var>, when invoked, must run the following steps:</p>
6748067485
6748167486 <ol>
67487+ <!-- We could lift this restriction in the future. -->
6748267488 <li><p>If <var>element</var>'s <span data-x="concept-element-is-value"><code
6748367489 data-x="">is</code> value</span> is not null, then throw a
6748467490 <span>"<code>NotSupportedError</code>"</span> <code>DOMException</code>.</p></li>
0 commit comments