Skip to content

Commit

Permalink
Fix w3c#87: a dictionary member is present, not defined.
Browse files Browse the repository at this point in the history
Changed in Constructing events.
  • Loading branch information
dongleiwu committed Apr 12, 2017
1 parent 9972f60 commit 8354fbb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions sections/events.include
Original file line number Diff line number Diff line change
Expand Up @@ -277,15 +277,15 @@ method must, when invoked, run these steps:
<p>When a <dfn lt="dom event constructor|event constructor|constructor|constructors">constructor</dfn> of the <code><a>Event</a></code> interface, or of an interface that inherits from the <code><a>Event</a></code> interface, is invoked, these steps must be run:

<ol>
1. Create an <a>event</a> that uses the interface the constructor was invoked upon.
<li><p> Create an <a>event</a> that uses the interface the constructor was invoked upon.

2. Set its <a>initialized flag</a>.
<li><p> Set its <a>initialized flag</a>.

3. Initialize the <code><a>type</a></code> attribute to the <var>type</var> argument.
<li><p> Initialize the <code><a>type</a></code> attribute to the <var>type</var> argument.

4. If there is an <var>eventInitDict</var> argument then for each <a>dictionary member</a> defined therein find the attribute on <a>event</a> whose <a>identifier</a> matches the key of the <a>dictionary member</a> and then set the attribute to the value of that <a>dictionary member</a>.
<li><p> If there is an <var>eventInitDict</var> argument then for each <a>dictionary member</a> present, find the attribute on <a>event</a> whose <a>identifier</a> matches the key of the <a>dictionary member</a> and then set the attribute to the value of that <a>dictionary member</a>.

5. Return the <a>event</a>.
<li><p> Return the <a>event</a>.

</ol>

Expand Down

0 comments on commit 8354fbb

Please sign in to comment.