From 450c6bb8ba861c76afcbeeb37f8b1f4511ce9bc4 Mon Sep 17 00:00:00 2001
From: Jayson Chen If inclusiveDescendant is an element:
If inclusiveDescendant's custom element registry is
- null, then set inclusiveDescendant's custom element registry to
- the result of looking up a custom element registry given
- inclusiveDescendant's parent.
-
- Otherwise, if inclusiveDescendant's
+ If inclusiveDescendant's
custom element registry's is scoped is
true, append inclusiveDescendant's node document to
inclusiveDescendant's custom element registry's
@@ -2941,14 +2936,7 @@ optional boolean suppressObservers (default f
Otherwise, if inclusiveDescendant is a shadow root:
If inclusiveDescendant's custom element registry is
- null and inclusiveDescendant's
- keep custom element registry null is false, then set
- inclusiveDescendant's custom element registry to the result
- of looking up a custom element registry given inclusiveDescendant's
- host.
-
- Otherwise, if inclusiveDescendant's
+ If inclusiveDescendant's
custom element registry is non-null and
inclusiveDescendant's custom element registry's
is scoped is true, append
@@ -6052,12 +6040,14 @@ these steps:
Set inclusiveDescendant's node document to document.
- If inclusiveDescendant is a shadow root and
- inclusiveDescendant's custom element registry
- is a global custom element registry, then set inclusiveDescendant's
- custom element registry to document's
- effective global custom element registry.
-
+ If inclusiveDescendant is a shadow root:
+ Otherwise, if inclusiveDescendant is an element:
@@ -6066,7 +6056,7 @@ these steps:
inclusiveDescendant's attribute list to document.
If inclusiveDescendant's custom element registry
- is a global custom element registry, then set inclusiveDescendant's
+ is a global custom element registry or null, then set inclusiveDescendant's
custom element registry to document's
effective global custom element registry.
If inclusiveDescendant is an element:
+ If inclusiveDescendant is an element and
+ inclusiveDescendant's custom element registry is not null:
If inclusiveDescendant's
@@ -6040,25 +6041,35 @@ these steps:
Set inclusiveDescendant's node document to document.
- If inclusiveDescendant is a shadow root:
+ If inclusiveDescendant is a shadow root:
+
If inclusiveDescendant's custom element registry
+ is null, set inclusiveDescendant's custom element registry
+ to document's effective global custom element registry.
+
+ Otherwise, if inclusiveDescendant's
+ custom element registry is a global custom element registry,
+ set inclusiveDescendant's custom element registry to
+ document's effective global custom element registry.
Otherwise, if inclusiveDescendant is an element:
Set the node document of each attribute in
- inclusiveDescendant's attribute list to document.
+ Set the node document of each attribute in
+ inclusiveDescendant's attribute list to document.
+
+ If inclusiveDescendant's custom element registry
+ is null, set inclusiveDescendant's custom element registry
+ to document's effective global custom element registry.
- If inclusiveDescendant's custom element registry
- is a global custom element registry or null, then set inclusiveDescendant's
- custom element registry to document's
- effective global custom element registry.
+ Otherwise, if inclusiveDescendant's
+ custom element registry is a global custom element registry,
+ set inclusiveDescendant's custom element registry to
+ document's effective global custom element registry.
If inclusiveDescendant is an element and
- inclusiveDescendant's custom element registry is not null:
+ inclusiveDescendant's custom element registry is non-null:
If inclusiveDescendant's
@@ -6045,31 +6045,25 @@ these steps:
If inclusiveDescendant is a shadow root:
If inclusiveDescendant's custom element registry
- is null, set inclusiveDescendant's custom element registry
- to document's effective global custom element registry.
-
- Otherwise, if inclusiveDescendant's
- custom element registry is a global custom element registry,
- set inclusiveDescendant's custom element registry to
- document's effective global custom element registry.
+ if inclusiveDescendant's custom element registry
+ is null or inclusiveDescendant's custom element registry's
+ is scoped is false, then set
+ inclusiveDescendant's custom element registry to
+ document's effective global custom element registry.
Otherwise, if inclusiveDescendant is an element:
Set the node document of each attribute in
- inclusiveDescendant's attribute list to document.
-
- If inclusiveDescendant's custom element registry
- is null, set inclusiveDescendant's custom element registry
- to document's effective global custom element registry.
-
- Otherwise, if inclusiveDescendant's
- custom element registry is a global custom element registry,
- set inclusiveDescendant's custom element registry to
- document's effective global custom element registry.
+ Set the node document of each attribute in
+ inclusiveDescendant's attribute list to document.
+
+ If inclusiveDescendant's custom element registry
+ is null or inclusiveDescendant's custom element registry's
+ is scoped is false, then set
+ inclusiveDescendant's custom element registry to
+ document's effective global custom element registry.
-
-
@@ -11074,6 +11064,7 @@ James Graham,
James Greene,
James M Snell,
James Robinson,
+Jayson Chen,
Jeffrey Yasskin,
Jens Lindström,
Jeremy Davis,
From 7243117e80f1a2a3981a34e5edfac707886c38b9 Mon Sep 17 00:00:00 2001
From: Jayson Chen
+
+
From 7c5910363a5cac0cd0ae52cbb3a20d9a6b2115be Mon Sep 17 00:00:00 2001
From: Jayson Chen
-
-
@@ -6538,9 +6532,6 @@ It is initially set to false.
-
-
+
-
Shadow roots have an associated custom element registry (null or a {{CustomElementRegistry}} object). It is initially null.
-Shadow roots have an associated -keep custom element registry null (a boolean). It is initially false. -
This can only ever be true in combination with declarative shadow roots. And it only
matters for as long as the shadow root's custom element registry
is null.
From a57411c2d56f248e657e92c86e9e028a6f9d3a10 Mon Sep 17 00:00:00 2001
From: Jayson Chen Set inclusiveDescendant's node document to document.
If inclusiveDescendant is a shadow root:
+ If inclusiveDescendant is a shadow root, and if any of the
+ following are true:
- if inclusiveDescendant's custom element registry
- is null or inclusiveDescendant's custom element registry's
- is scoped is false, then set
- inclusiveDescendant's custom element registry to
- document's effective global custom element registry.
- inclusiveDescendant's custom element registry is
+ null and inclusiveDescendant's
+ keep custom element registry null is false; or
+
+ inclusiveDescendant's custom element registry's
+ is scoped is false,
+ then set inclusiveDescendant's custom element registry
+ to document's effective global custom element registry.
Otherwise, if inclusiveDescendant is an element:
@@ -6532,6 +6537,9 @@ It is initially set to false. Shadow roots have an associated custom element registry
(null or a {{CustomElementRegistry}} object). It is initially null. Shadow roots have an associated
+keep custom element registry null (a boolean). It is initially false.
+
This can only ever be true in combination with declarative shadow roots. And it only
matters for as long as the shadow root's custom element registry
is null.
From 25892f2e2454d30ee9045e2b1933c01420643e77 Mon Sep 17 00:00:00 2001
From: Anne van Kesteren If inclusiveDescendant's
- custom element registry's is scoped is
- true, append inclusiveDescendant's node document to
+ If inclusiveDescendant's custom element registry's
+ is scoped is true, then append
+ inclusiveDescendant's node document to
inclusiveDescendant's custom element registry's
scoped document set.
@@ -2933,18 +2933,13 @@ optional boolean suppressObservers (default f
upgrade an element algorithm.
Otherwise, if inclusiveDescendant is a shadow root:
-
- If inclusiveDescendant's
- custom element registry is non-null and
- inclusiveDescendant's custom element registry's
- is scoped is true, append
- inclusiveDescendant's node document to
- inclusiveDescendant's custom element registry's
- scoped document set.
- Otherwise, if inclusiveDescendant is a shadow root,
+ inclusiveDescendant's custom element registry is non-null, and
+ inclusiveDescendant's custom element registry's
+ is scoped is true, then append
+ inclusiveDescendant's node document to
+ inclusiveDescendant's custom element registry's
+ scoped document set.
@@ -6042,20 +6037,20 @@ these steps:
Set inclusiveDescendant's node document to document.
If inclusiveDescendant is a shadow root, and if any of the
- following are true:
+ If inclusiveDescendant is a shadow root and if any of the following
+ are true:
inclusiveDescendant's custom element registry is
- null and inclusiveDescendant's
- keep custom element registry null is false; or
+ inclusiveDescendant's custom element registry is null
+ and inclusiveDescendant's keep custom element registry null
+ is false; or
- inclusiveDescendant's custom element registry's
- is scoped is false,
+ inclusiveDescendant's custom element registry
+ is a global custom element registry,
then set inclusiveDescendant's custom element registry
- to document's effective global custom element registry.
+ then set inclusiveDescendant's custom element registry to
+ document's effective global custom element registry.
Otherwise, if inclusiveDescendant is an element:
@@ -6064,8 +6059,8 @@ these steps:
Set the node document of each attribute in
inclusiveDescendant's attribute list to document.
- If inclusiveDescendant's custom element registry
- is null or inclusiveDescendant's custom element registry's
+ If inclusiveDescendant's custom element registry is null
+ or inclusiveDescendant's custom element registry's
is scoped is false, then set
inclusiveDescendant's custom element registry to
document's effective global custom element registry.
From 9821f8a5de4dd5f975684783d9ee49a57177b0b8 Mon Sep 17 00:00:00 2001
From: Anne van Kesteren To adopt a node into a document, run
-these steps:
+ To adopt a node node into a
+document document:
Let oldDocument be node's node document.
@@ -6030,8 +6030,8 @@ these steps:
For each inclusiveDescendant in node's
- shadow-including inclusive descendants:
+ For each inclusiveDescendant of node's
+ shadow-including inclusive descendants, in shadow-including tree order:
Set inclusiveDescendant's node document to document.
@@ -6067,14 +6067,15 @@ these steps:
For each inclusiveDescendant in node's
- shadow-including inclusive descendants that is custom,
- enqueue a custom element callback reaction with inclusiveDescendant, callback
- name " For each inclusiveDescendant of node's
+ shadow-including inclusive descendants that is custom, in
+ shadow-including tree order: enqueue a custom element callback reaction with
+ inclusiveDescendant, callback name " For each inclusiveDescendant in node's
- shadow-including inclusive descendants, in shadow-including tree order, run the
+ For each inclusiveDescendant of node's
+ shadow-including inclusive descendants, in shadow-including tree order: run the
adopting steps with inclusiveDescendant and oldDocument.
-
+
+
+
+
-
-
-
+
-
-
-
adoptedCallback", and « oldDocument, document ».
+ adoptedCallback", and
+ « oldDocument, document ».
-