diff --git a/dom.bs b/dom.bs index ca59eaf5..a0e276b0 100644 --- a/dom.bs +++ b/dom.bs @@ -2655,7 +2655,13 @@ of a node into a parent before a child, run the
To ensure pre-move validity of a node into a parent before a child, run these steps: -
If either parent or node are not connected, then + throw a "{{HierarchyRequestError!!exception}}" {{DOMException}}.
If parent's shadow-including root is not the same as + node's shadow-including root, then throw a + "{{HierarchyRequestError!!exception}}" {{DOMException}}.
If node is not an {{Element}} or a {{CharacterData}} node, then throw a "{{HierarchyRequestError!!exception}}" {{DOMException}}.
If any of the following conditions are false:
- -node is connected;
this's shadow-including root is the same as node's - shadow-including root,
then throw "{{HierarchyRequestError!!exception}}" {{DOMException}}.
-Let return node be the result of pre-moving node into - this before child.
Return return node.