- From: Simon Bates <notifications@github.com>
- Date: Mon, 09 Aug 2021 13:50:13 -0700
- To: w3c/uievents <uievents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <w3c/uievents/issues/307@github.com>
I believe that I have found a bug in the specification of the `relatedTarget` property of the `mouseover` event. The specification differs from what I am seeing in Firefox, Chrome, and Edge. And differs from the Mozilla documentation and the specification of the related `mouseenter` event. The specification of the `relatedTarget` property of the `mouseover` event (https://w3c.github.io/uievents/#event-type-mouseover) reads: "indicates the event target a pointing device is entering, if any." But I think that it should read: "indicates the event target a pointing device is exiting, if any." When testing `mouseover` events in Firefox, Chrome, and Edge I see that the `relatedTarget` property is set to the element that the pointer exited. I have created a test file here: https://gist.github.com/sbates-idrc/b47ebb07ab95a4e50dd64b7933351de1 Moving the pointer from `div` A to `div` B results in the following being logged: * `target: div B` * `relatedTarget: div A` This behaviour is consistent with the Mozilla documentation: https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/relatedTarget The specifiicaion of the `relatedTarget` property of the `mouseenter` event reads: "indicates the event target a pointing device is exiting, if any." (https://w3c.github.io/uievents/#event-type-mouseenter) -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/uievents/issues/307
Received on Monday, 9 August 2021 20:50:26 UTC