Re: [whatwg/dom] "create an event" does not work with required members (#600)

Why not let "create an event" just take a dictionary override:

> 1. let initDict be a new SomeKindOfEventInitDict. 
> 2. Set initDict.requiredThing be "the required thing". 
> 3. "Create an event" with `MyEventInteface` ... deal with optional realm ... and initDict, and set ev to the resulting event. 

And then change:

> If dictionary was not passed, let dictionary be the result of converting the JavaScript value undefined to the dictionary type accepted by eventInterface’s constructor. (This dictionary type will either be EventInit or a dictionary that inherits from it.)

So then it just use the passes dictionary?  

-- 
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/600#issuecomment-416131542

Received on Monday, 27 August 2018 06:50:27 UTC