Re: [whatwg/dom] Clarification on construction and creation of events (#372)

> Ok, maybe we should clarify the above in the spec? In particular, warn people that they should really go and just use "fire an event".

That's kind of implied by the spec's "Create an event is meant to be used by other specifications which need to separately create and dispatch events, instead of simply firing them," but it could be clearer I suppose.

> But BeforeInstallPromptEvent doesn't have a matching "userChoice" for BeforeInstallPromptEventInit.userChoice. 

Oh, then it's an invalid event.

>  I should probably drop BeforeInstallPromptEventInit, right? 

Yeah, it's not really OK for an event to be able to synchronously provide a value but not synchronously read it back. So either remove the ability to initialize it with a given userChoice, or just add a userChoice property to BeforeInstallPromptEvent.

-- 
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/372#issuecomment-259601963

Received on Thursday, 10 November 2016 05:00:04 UTC