Re: [whatwg/dom] Should we really support modifying an already dispatched event via initEvent()? (#523)

We could even consider going further and not having init*Event functions do anything when called on an event unless the event was created by calling createEvent. It’s hard to define exactly what the correct behavior would be if you received a mouse event from the browser and then called initEvent on it to change its type, for example. What should be done to browser-internal properties in that case.

I know we’d have to do some research about web compatibility if we wanted to go that far, but I think it’s worth considering.

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

Received on Sunday, 29 October 2017 00:52:30 UTC