You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<li><p>If the start tag for the <span data-x="concept-declarative-template-element">declarative template element</span> had an attribute with the name "shadowroot" whose value was an ASCII case-insensitive match for the strings "open" or "closed", then mark the template element as a
108204
108204
<dfn><var data-x="concept-declarative-shadow-root">"declarative shadow root"</var></dfn>. Let the <dfn><var data-x="concept-declarative-shadow-mode">declarative shadow mode</var></dfn> be the value of the "shadowroot" attribute.</p></li>
108205
108205
108206
-
<li><p>If this is not a <span data-x="concept-declarative-shadow-root">declarative shadow root</span>, then stop this algorithm.</p></li>
108206
+
<li><p>If the template element is not a <span data-x="concept-declarative-shadow-root">declarative shadow root</span>, then stop this algorithm.</p></li>
108207
108207
108208
108208
<li><p>If the <span data-x="concept-declarative-shadow-host-element">declarative shadow host element</span> is not a valid element for shadow root attachment, as specified in <a href="https://dom.spec.whatwg.org/#dom-element-attachshadow">dom element attachShadow()</a>, then stop this algorithm.</p></li>
108209
108209
108210
108210
<li><p>If the start tag for the <span data-x="concept-declarative-template-element">declarative template element</span> had an attribute with the name "shadowrootdelegatesfocus", then let <dfn><var data-x="concept-declarative-shadow-delegates-focus">declarative shadow delegates focus</var></dfn> be true. Otherwise let it be false.</p></li>
108211
108211
108212
-
<li><p>Follow the steps in <a href="https://dom.spec.whatwg.org/#dom-element-attachshadow">dom element attachShadow()</a> to attach a shadow root to <span data-x="concept-declarative-shadow-host-element">declarative shadow host element</span>, using <a href="https://dom.spec.whatwg.org/#dom-is-declarative-shadow-root">is declarative shadow root</a> equal to true, a
108213
-
<a href=https://dom.spec.whatwg.org/#shadowroot-mode>mode</a> equal to <span data-x="concept-declarative-shadow-mode>declarative shadow mode</span>, and <span>delegates focus</span> equal to <span data-x="concept-declarative-shadow-delegates-focus">declarative shadow delegates focus</span>.</p></li>
108212
+
<li><p>Follow the steps in <a href="https://dom.spec.whatwg.org/#dom-element-attachshadow">dom element attachShadow()</a> to attach a shadow root to <span data-x="concept-declarative-shadow-host-element">declarative shadow host element</span>, using <a href="https://dom.spec.whatwg.org/#dom-is-declarative-shadow-root">is declarative shadow root</a> equal to true,
108213
+
<a href="https://dom.spec.whatwg.org/#shadowroot-mode">mode</a> equal to <span data-x="concept-declarative-shadow-mode">declarative shadow mode</span>, and <span>delegates focus</span> equal to <span data-x="concept-declarative-shadow-delegates-focus">declarative shadow delegates focus</span>.</p></li>
108214
108214
108215
-
<li><p>Move the contents of the <span data-x="concept-declarative-template-element">declarative template element</span> into the newly-created shadow root.</p></li>
108215
+
<li><p><a href="https://dom.spec.whatwg.org/#concept-node-append">Append</a> the <span data-x="concept-declarative-template-element">declarative template element</span> contents DocumentFragment to the newly-created shadow root.</p></li>
108216
108216
108217
-
<li><p>Remove the <span data-x="concept-declarative-template-element">declarative template element</span> from the document.</p></li>
108217
+
<li><p><a href="https://dom.spec.whatwg.org/#concept-node-remove">Remove</a> the <span data-x="concept-declarative-template-element">declarative template element</span> from the document.</p></li>
0 commit comments