Re: [whatwg/dom] initEvent should not require three parameters (#387)

Not long before this issue was filed, I [suggested](https://bugs.chromium.org/p/chromium/issues/detail?id=673698#c2) that @LoonyBean try fixing this in Blink, giving it good chances of working out because Firefox and Edge would already throw.

If there is a way for WebKit to make the change, then that'd be great. However, different behavior for a browser and WebView seems the only option, and not a good one.

So, I think we should make the two boolean arguments optional. I'd support doing the same for all `init*Event` methods, requiring arguments only up to the last argument corresponding to a required dictionary member. (Otherwise the `init*Event*` methods can make some attributes null. Another way would be to just make the attributes nullable and sigh.)

-- 
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/387#issuecomment-270796550

Received on Friday, 6 January 2017 00:18:57 UTC