- From: smaug---- <notifications@github.com>
- Date: Mon, 09 Feb 2026 04:33:54 -0800
- To: w3c/uievents <uievents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <w3c/uievents/pull/413/review/3773043519@github.com>
@smaug---- 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.
I would expect that "ultimateOriginatingElement" (maybe we can find some other name for that ;) ) would be compared to the currentTarget and then the getter of pseudoElement would either return the object or null. Something similar-ish to https://html.spec.whatwg.org/#dom-commandevent-source perhaps?
--
Reply to this email directly or view it on GitHub:
https://github.com/w3c/uievents/pull/413#pullrequestreview-3773043519
You are receiving this because you are subscribed to this thread.
Message ID: <w3c/uievents/pull/413/review/3773043519@github.com>
Received on Monday, 9 February 2026 12:33:57 UTC