Re: [w3c/uievents] Need clarification with `MouseEvent::mouseleave` (Issue #400)

masayuki-nakano left a comment (w3c/uievents#400)

`mouseenter` and `mouseleave` events should be targeted an `Element` (See "Trusted Targets" in the definitions) and they won't bubble up the tree from the target for the performance. Therefore, if you need to listen the event on the `Document` or `Window`, you need to specify `{capture: true}`. If you see the message in the other browsers, the behavior itself is a bug at least under current spec definition.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/uievents/issues/400#issuecomment-3212946026
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/uievents/issues/400/3212946026@github.com>

Received on Friday, 22 August 2025 03:55:52 UTC