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

@josepharhar commented on this pull request.



> @@ -49,6 +50,26 @@
      The <a>un-initialized value</a> of this attribute MUST be
      <code>0</code>.
     </dd>
+
+    <dt><code>UIEvent . pseudoTarget</code></dt>
+    <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>.
+
+     To get this attribute, run these steps:
+
+     1. If {{UIEvent/pseudoTarget}} 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>.
+     1. Let |origin| be {{Event/target}} (which would be {{UIEvent/pseudoTarget}}'s [=ultimate originating element=]).

As Daniil pointed out, this term is defined in css: https://drafts.csswg.org/selectors-4/#ultimate-originating-element

I don't think that the naming of that term should block this PR.

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

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

Received on Monday, 11 May 2026 18:24:46 UTC