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

@smaug---- commented on this pull request.



> +    <dd>
+     The [=pseudo-element=] that was the target of the interaction,
+     if any. When the event target is an element rather than a
+     [=pseudo-element=], this attribute is <code>null</code>.
+
+     Each {{UIEvent}} has an associated <dfn for="UIEvent">pseudoTargetOrigin</dfn>
+     internal slot (an {{Element}} or <code>null</code>), initialized to
+     <code>null</code>, and an associated <dfn for="UIEvent">pseudoTarget</dfn>
+     internal slot (a {{CSSPseudoElement}} or <code>null</code>), initialized to
+     <code>null</code>.
+
+     To get this attribute, run these steps:
+
+     1. If the [=UIEvent/pseudoTargetOrigin=] internal slot is <code>null</code>, then return <code>null</code>.
+     1. Let |currentTarget| be {{Event/currentTarget}}.
+     1. If |currentTarget| is <code>null</code>, then return <code>null</code>.

I don't quite understand that. If we aren't dispatching the event, pseudoTarget should be null, since one may keep reference to event in light DOM.


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

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

Received on Thursday, 25 June 2026 23:03:09 UTC