Re: [whatwg/dom] Do not dispatch a trusted event when target and reletedTarget are identical (#336)

@bathos yeah I observed that `relatedTarget` is accessor property. But this UIEvent attribute exists for concrete `UIEvents` like `MouseEvent` or `FocusEvent`. Hence for them I can't do ordinary assignment because they are getters, I talk about `relatedTarget` properties. I only do initializing as I specify above. But what about `CustomEvent`? What if I want to emulate behaviour like a `MouseEvent` when my cursor point onto element of shadow root and then I do "move" to his host element that also placing in shadow root, I expect to see no one callback (callback won't be called).

Summarize: Inspite of that spec explicit says about `relatedTarget` as a property of event, there are differences. Your own created properties don't count in whatwg algos. Right? 

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/pull/336#issuecomment-1468006729
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/dom/pull/336/c1468006729@github.com>

Received on Tuesday, 14 March 2023 12:21:56 UTC