Skip to content
This repository has been archived by the owner on Nov 11, 2019. It is now read-only.

Fix #87: a dictionary member is present, not defined. #134

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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