- From: Joey Arhar <notifications@github.com>
- Date: Thu, 25 Jun 2026 12:32:30 -0700
- To: w3c/uievents <uievents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <w3c/uievents/pull/413/review/4574350007@github.com>
@josepharhar 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>.
If we removed this step to return null when currentTarget is null, then we could access the pseudoTarget after event dispatch like ToggleEvent.source, and in the case where its inside a shadow root then it will still return null to prevent leaking stuff internal to the shadow root because of the later step that returns null:
```
If |retargeted| is not |origin|, then return <code>null</code>.
```
I'm not sure if this is important to support or not, but I figured we should match ToggleEvent.source
--
Reply to this email directly or view it on GitHub:
https://github.com/w3c/uievents/pull/413#pullrequestreview-4574350007
You are receiving this because you are subscribed to this thread.
Message ID: <w3c/uievents/pull/413/review/4574350007@github.com>
Received on Thursday, 25 June 2026 19:32:34 UTC