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

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



> +   : Output
+   :: None
+
+   1. If |pseudoElement| is null, then exit
+
+   1. Let |pseudoInstance| be the {{CSSPseudoElement}} representing the |pseudoElement|
+
+    <p class="note">
+    This {{CSSPseudoElement}} must be the same object instance that would be returned
+    by calling <code>.pseudo(type)</code> on the |pseudoElement|'s originating element
+    (which can be either {{Element}} or {{CSSPseudoElement}}) to ensure that |pseudoInstance|
+    is a canonical object representing |pseudoElement|.
+    </p>
+
+   1. Set |event|'s <code>pseudoTarget</code> attribute to |pseudoInstance|
+

Are there tests for this (and for pseudo(type))? In this event case there should be tests ensuring that event.pseudoTarget doesn't change even if the event.target is moved to a different place in DOM, or get different styling during event dispatch.

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

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

Received on Monday, 9 February 2026 09:33:27 UTC