Re: [csswg-drafts] [css-pseudo] Can we make pseudo-elements first-class citizens in the DOM? (#11559)

> But consider
> 
> ```js
> document.addEventListener("mousemove", e => console.log(e.target))
> ```

IUC the `e.target` is the ultimate originating element in this case, which could be left that way. A new property that distinguishes between the ultimate originating element and the pseudo (or some other way to detect this) could solve this.

-- 
GitHub Notification of comment by bramus
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11559#issuecomment-2614563046 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Sunday, 26 January 2025 19:36:16 UTC