From 85fec7c64ded67e85e9f5557d86fe0c355b10a8f Mon Sep 17 00:00:00 2001
From: Anne van Kesteren Set slot-in-closed-tree to false.
- Let clearTargetsTuple be the last tuple in event's
+ Let clearTargetsStruct be the last struct in event's
path whose target is non-null.
- Let clearTargets be true if clearTargetsTuple's
- target, clearTargetsTuple's relatedTarget,
- or an {{EventTarget}} object in clearTargetsTuple's
- touch target list is a node and its root is a
- shadow root, and false otherwise.
+ Let clearTargets be true if clearTargetsStruct's
+ target, clearTargetsStruct's
+ relatedTarget, or an {{EventTarget}} object in
+ clearTargetsStruct's touch target list is a node
+ and its root is a shadow root, and false otherwise.
Set event's {{Event/eventPhase}} attribute to {{Event/CAPTURING_PHASE}}.
@@ -1322,18 +1322,18 @@ for discussion).
legacy-pre-activation behavior.
For each tuple in event's path, in reverse order:
+ For each struct in event's path, in reverse order:
For each tuple in event's path, in order:
+ For each struct in event's path, in order:
If tuple's target is non-null, then set
+ If struct's target is non-null, then set
event's {{Event/eventPhase}} attribute to {{Event/AT_TARGET}}.
Otherwise, set event's {{Event/eventPhase}} attribute to
@@ -1342,7 +1342,7 @@ for discussion).
If either event's {{Event/eventPhase}} attribute is {{Event/BUBBLING_PHASE}}
and event's {{Event/bubbles}} attribute is true or event's
{{Event/eventPhase}} attribute is {{Event/AT_TARGET}}, then invoke with
- tuple, event, and legacyOutputDidListenersThrowFlag if given.
+ struct, event, and legacyOutputDidListenersThrowFlag if given.
To invoke, given a tuple,
+ To invoke, given a struct,
event, and an optional legacyOutputDidListenersThrowFlag, run these steps:
Set event's target to the target of the
- last tuple in event's path, that is either tuple or
- preceding tuple, whose target is non-null.
+ last struct in event's path, that is either struct or
+ preceding struct, whose target is non-null.
- Set event's relatedTarget to tuple's
+ Set event's relatedTarget to struct's
relatedTarget.
- Set event's touch target list to tuple's
+ Set event's touch target list to struct's
touch target list.
If event's stop propagation flag is set, then return.
- Initialize event's {{Event/currentTarget}} attribute to tuple's
+ Initialize event's {{Event/currentTarget}} attribute to struct's
item.
Set currentEvent to global's current event.
- If tuple's item-in-shadow-tree is false, then set
+ If struct's item-in-shadow-tree is false, then set
global's current event to event.
-
@@ -1405,23 +1405,23 @@ for discussion).
slot-in-closed-tree is slot-in-closed-tree.
-
@@ -5685,8 +5685,9 @@ or "closed
").
A shadow root's get the parent algorithm, given an event, returns null if event's composed flag is unset and shadow root is the -root of event's path's first tuple's item, and -shadow root's host otherwise. +root of event's path's first struct's +item, and shadow root's host +otherwise.
The mode
attribute's getter must return the
context object's mode.