Re: [w3c/uievents] Add .pseudoTarget property to selected event types (PR #413)

@danielsakhapov commented on this pull request.



> +  <div class="algorithm" data-algorithm="set-pseudo-target-for-event">
+  <h4 id="set-pseudo-target-for-event-id"><dfn>set pseudo-target for event</dfn></h4>
+
+   : Input
+   :: |event|, the event being dispatched ({{UIEvent}})
+   :: |pseudoElement|, the [=pseudo-element=] that was the target of the interaction, or null
+   :: |eventTarget|, the initial {{EventTarget}} the user agent will dispatch the event at
+
+   : Output
+   :: None
+
+   1. If |pseudoElement| is null, then exit
+
+   1. Let |ultimateOriginatingElement| be the |pseudoElement|'s [=ultimate originating element=].
+
+   1. If |ultimateOriginatingElement| is in a shadow tree (that is, its [=tree/root=] is a {{ShadowRoot}}) and |eventTarget| is not contained within the same shadow tree, then exit.

Updated

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/uievents/pull/413#discussion_r2782687026
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/uievents/pull/413/review/3773350836@github.com>

Received on Monday, 9 February 2026 13:39:34 UTC