From 8c0049e8163693fe31d186f1d37937da091a6ffc Mon Sep 17 00:00:00 2001 From: Mason Freed Date: Mon, 5 Oct 2020 09:22:25 -0700 Subject: [PATCH] Add "is available to element internals" This is for use with https://github.com/whatwg/html/pull/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 https://github.com/w3c/webcomponents/issues/871#issuecomment-692383222 for more context. --- dom.bs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dom.bs b/dom.bs index 92408bc13..1bd55ff68 100644 --- a/dom.bs +++ b/dom.bs @@ -5717,6 +5717,9 @@ or "closed").

Shadow roots have an associated delegates focus. It is initially set to false.

+

Shadow roots have an associated +available to element internals. It is initially set to false.

+

Shadow roots's associated host is never null.

@@ -6741,6 +6744,10 @@ invoked, must run these steps:
  • Set shadow's delegates focus to init's {{ShadowRootInit/delegatesFocus}}. +

  • If this's custom element state is "precustomized" or + "custom", then set shadow's + available to element internals to true. +

  • Set this's shadow root to shadow.

  • Return shadow.