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

@dbaron commented on this pull request.



> @@ -54,6 +54,48 @@
 
   </div><!-- algorithm -->
 
+ <h3 id="pseudo-element-event-dispatch">Pseudo-Element Event Dispatch</h3>
+
+  When the target of a user interaction is a [=pseudo-element=], the
+  {{UIEvent/pseudoTarget}} attribute is set to identify the specific pseudo-element involved.
+
+  <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}} or any subclass)

I don't think you explicitly need to mention that it can be a subclass.

> @@ -55,6 +55,13 @@ url: https://drafts.csswg.org/cssom-view/#dom-document-elementfrompoint; type: d
  text: elementFromPoint
 url: https://drafts.csswg.org/cssom-view/#dom-document-elementsfrompoint; type: dfn; spec: cssom-view
  text: elementsFromPoint
+<!-- CSS Pseudo-Elements -->

All three terms work fine for me in the uievents spec without any additional anchors or link defaults, although pseudo-element and ultimate originating element end up linking to selectors-4 rather than css-pseudo-4.  (Your links are broken -- they're not in css-pseudo-4!)  Can you try again?

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

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

Received on Wednesday, 4 February 2026 19:22:35 UTC