diff --git a/dom.bs b/dom.bs index 3574b5fd..822da482 100644 --- a/dom.bs +++ b/dom.bs @@ -6026,57 +6026,50 @@ algorithm is passed node and oldDocument, as node.
If document is not oldDocument: +
If document is not oldDocument, then for each + inclusiveDescendant of node's shadow-including inclusive descendants, + in shadow-including tree order:
For each inclusiveDescendant of node's - shadow-including inclusive descendants, in shadow-including tree order: - -
Set inclusiveDescendant's node document to document. +
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 - is a global custom element registry, -
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: +
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 - 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. -
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. + +
If inclusiveDescendant is custom, then
+ enqueue a custom element callback reaction with inclusiveDescendant, callback
+ name "adoptedCallback", and « oldDocument, document ».
+
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 "adoptedCallback", and
- « oldDocument, document ».
-
-
-
For each inclusiveDescendant of node's - shadow-including inclusive descendants, in shadow-including tree order: run the - adopting steps with inclusiveDescendant and oldDocument. +
Run the adopting steps with inclusiveDescendant and + oldDocument.