diff --git a/dom.bs b/dom.bs index 80e4de6e..1befcd6c 100644 --- a/dom.bs +++ b/dom.bs @@ -5956,6 +5956,23 @@ is an object or one of its shadow-including ancestors.

The retargeting algorithm is used by event dispatch as well as other specifications, such as Fullscreen. [[FULLSCREEN]] +

To get the flat tree parent of a node:

+ +
    +
  1. Let parent be node's parent.

  2. + +
  3. If parent is a shadow root, then return parent's host.

  4. + +
  5. If parent is not a shadow host, then return + node.

  6. + +
  7. If node's assigned slot is null, then return null.

  8. + +
  9. Return node's assigned slot's parent.

  10. +
+

Interface {{Element}}