Re: [whatwg/dom] document.createEvent() supports lots of events that most UAs do not support initializers for (#362)

I have mixed feelings about BeforeUnloadEvent. On the one hand, constructors are a good thing, and maybe people want it for mocking or something. On the other hand, beforeunload is a terrible event that nobody should use, so making it more "magic" by making it only browser-constructible might be nice.

Given that nobody implements a constructor, I'm not sure it's worth adding one. I'm not sure where that leaves us for createEvent though.

-- 
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/362#issuecomment-295774000

Received on Thursday, 20 April 2017 15:15:37 UTC