From 623f176e30593765f2d3617449003bc4407ae58d Mon Sep 17 00:00:00 2001 From: Mason Freed Date: Tue, 15 Sep 2020 14:52:00 -0700 Subject: [PATCH 1/6] Add is-available-to-element-internals --- dom.bs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dom.bs b/dom.bs index 95bed6b67..c3c920fee 100644 --- a/dom.bs +++ b/dom.bs @@ -5714,6 +5714,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.

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

  • If this is custom, and if this's custom + element state is not "precustomized" or "custom", set shadow's + available to element internals property to false. Otherwise, set it to + true. +

  • Set this's shadow root to shadow.

  • Return shadow. From 3d723d802fba241c7e511aa4a69a7766ebd282ea Mon Sep 17 00:00:00 2001 From: Mason Freed Date: Thu, 24 Sep 2020 21:01:22 -0700 Subject: [PATCH 2/6] Remove extra definition of "custom". --- dom.bs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/dom.bs b/dom.bs index c3c920fee..19595f007 100644 --- a/dom.bs +++ b/dom.bs @@ -6741,10 +6741,9 @@ invoked, must run these steps:

  • Set shadow's delegates focus to init's {{ShadowRootInit/delegatesFocus}}. -

  • If this is custom, and if this's custom - element state is not "precustomized" or "custom", set shadow's - available to element internals property to false. Otherwise, set it to - true. +

  • If this is custom, set shadow's + available to element internals property to true. Otherwise, set it to + false.

  • Set this's shadow root to shadow. From 7f548e226d0391d07f4ae876b1c39378ec75b8aa Mon Sep 17 00:00:00 2001 From: Mason Freed Date: Fri, 25 Sep 2020 09:07:31 -0700 Subject: [PATCH 3/6] Change back to "precustomized" or "custom" --- dom.bs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dom.bs b/dom.bs index 19595f007..128b0e177 100644 --- a/dom.bs +++ b/dom.bs @@ -6741,7 +6741,8 @@ invoked, must run these steps:

  • Set shadow's delegates focus to init's {{ShadowRootInit/delegatesFocus}}. -

  • If this is custom, set shadow's +

  • If this's custom element state is "precustomized" + or "custom", set shadow's available to element internals property to true. Otherwise, set it to false. From 6f5e208d8cc5fc02d288605ea20bbd3a8723e088 Mon Sep 17 00:00:00 2001 From: Mason Freed Date: Mon, 28 Sep 2020 09:10:39 -0700 Subject: [PATCH 4/6] line break Co-authored-by: Anne van Kesteren --- dom.bs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dom.bs b/dom.bs index 128b0e177..52ed349a1 100644 --- a/dom.bs +++ b/dom.bs @@ -5714,8 +5714,8 @@ 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 have an associated +available to element internals. It is initially set to false.

    Shadow roots's associated host is never null.