Skip to content

Commit 8c0049e

Browse files
authored
Add "is available to element internals"
This is for use with whatwg/html#5912, which restricts access to ElementInternals's shadowRoot property for shadow roots which were pre-existing before a custom element upgrade/construction. See the discussion in WICG/webcomponents#871 (comment) for more context.
1 parent a3f7138 commit 8c0049e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

dom.bs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5717,6 +5717,9 @@ or "<code>closed</code>").</p>
57175717
<p><a for=/>Shadow roots</a> have an associated <dfn export for=ShadowRoot>delegates focus</dfn>.
57185718
It is initially set to false.</p>
57195719

5720+
<p><a for=/>Shadow roots</a> have an associated
5721+
<dfn export for=ShadowRoot>available to element internals</dfn>. It is initially set to false.</p>
5722+
57205723
<p><a for=/>Shadow roots</a>'s associated <a for=DocumentFragment>host</a> is never null.</p>
57215724
<!-- If we ever change this, e.g., add a ShadowRoot object constructor, that would have serious
57225725
consequences for innerHTML. -->
@@ -6741,6 +6744,10 @@ invoked, must run these steps:
67416744
<li><p>Set <var>shadow</var>'s <a for=ShadowRoot>delegates focus</a> to <var>init</var>'s
67426745
{{ShadowRootInit/delegatesFocus}}.
67436746

6747+
<li><p>If <a>this</a>'s <a for=Element>custom element state</a> is "<code>precustomized</code>" or
6748+
"<code>custom</code>", then set <var>shadow</var>'s
6749+
<a for=ShadowRoot>available to element internals</a> to true.
6750+
67446751
<li><p>Set <a>this</a>'s <a for=Element>shadow root</a> to <var>shadow</var>.
67456752

67466753
<li><p>Return <var>shadow</var>.

0 commit comments

Comments
 (0)