diff --git a/dom.bs b/dom.bs index e278dd225..7f343bab5 100644 --- a/dom.bs +++ b/dom.bs @@ -1166,7 +1166,7 @@ for discussion).
legacy target override flag is only used by HTML and only when target is a {{Window}} object. -
Let clearTargetsPostDispatch be true if target, event's +
Let clearTargets be true if target, event's relatedTarget, or an {{EventTarget}} object in event's touch target list is a node and its root is a shadow root, and false otherwise. @@ -1174,9 +1174,15 @@ for discussion).
Let relatedTarget be the result of retargeting event's relatedTarget against target. -
If target is relatedTarget and target is not - event's relatedTarget, then return true. - +
If target is relatedTarget and target is not + event's relatedTarget, then: + +
Clear an event with event and clearTargets. + +
Return true. +
Let touchTargets be a new list. @@ -1296,22 +1302,10 @@ for discussion). event, and legacyOutputDidListenersThrowFlag if given. -
Unset event's dispatch flag, stop propagation flag, and - stop immediate propagation flag. +
Clear an event with event and clearTargets.
Set event's {{Event/eventPhase}} attribute to {{Event/NONE}}. -
If clearTargetsPostDispatch, then: - -
Set event's {{Event/target}} attribute to null. - -
Set event's relatedTarget to null. - -
Set event's touch target list to the empty list. -
Set event's {{Event/currentTarget}} attribute to null.
Set event's path to the empty list. @@ -1349,6 +1343,25 @@ for discussion). slot-in-closed-tree is slot-in-closed-tree. +
To clear an event, given an event event and a boolean +clearTargets, run these steps: + +
Unset event's dispatch flag, stop propagation flag, and + stop immediate propagation flag. + +
If clearTargets, then: + +
Set event's {{Event/target}} attribute to null. + +
Set event's relatedTarget to null. + +
Set event's touch target list to the empty list. +
To invoke an object with event and an optional legacyOutputDidListenersThrowFlag, run these steps: