- From: Anne van Kesteren <notifications@github.com>
- Date: Thu, 20 Oct 2016 22:57:29 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Message-ID: <whatwg/dom/pull/347/review/5202303@github.com>
annevk commented on this pull request. > +</ol> + +<p>To <dfn export id=concept-event-create lt="creating an event|create an event">create an +event</dfn> using <var>eventInterface</var>, which must be either {{Event}} or an interface that +inherits from it, run these steps:</p> + +<ol> + <li><p>Create a new object <var>event</var> using the <var>eventInterface</var> interface. + + <li><p>Set <var>event</var>'s <a>initialized flag</a>. + + <li><p>For each <a>dictionary member</a> of the dictionary accepted by <var>eventInterface</var>'s + constructor (which will either be {{EventInit}} or a dictionary that inherits from it), find the + attribute on <var>event</var> whose <a spec=webidl>identifier</a> matches the key of the + <a>dictionary member</a> and then set the attribute to the default value of that <a>dictionary + member</a>. This seems a little weird (it's not obvious how you'd have access to this data). @bzbarsky @heycam does this seem acceptable to you? The purpose here is to create an object for specification-prose and then initialize that object according to the dictionary its constructor accepts. -- 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/pull/347#pullrequestreview-5202303
Received on Friday, 21 October 2016 05:57:58 UTC