Skip to content

Commit

Permalink
A dictionary member is present, not defined.
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk committed Jul 1, 2015
1 parent e90ae28 commit 12887d3
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 42 deletions.
28 changes: 11 additions & 17 deletions dom.bs
Original file line number Diff line number Diff line change
Expand Up @@ -902,31 +902,25 @@ method must, when invoked, run these steps:
</ol>


<h3 id='constructing-events'>
Constructing events</h3>
<h3 id=constructing-events>Constructing events</h3>

When a <dfn export for=Event id=concept-event-constructor>constructor</dfn> of the {{Event}}
interface, or of an interface that inherits from the {{Event}} interface, is
When a <dfn export for=Event id=concept-event-constructor>constructor</dfn> of the
{{Event}} interface, or of an interface that inherits from the {{Event}} interface, is
invoked, these steps must be run:

<ol>
<li>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.

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

<li>Initialize the {{Event/type}} attribute to
the <var>type</var> argument.
<li><p>Initialize the {{Event/type}} attribute to the <var>type</var> argument.

<li>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>.

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


Expand Down
48 changes: 23 additions & 25 deletions dom.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
<h1 class="p-name no-ref allcaps" id="title">DOM</h1>

<h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">Living Standard — Last Updated
<time class="dt-updated" datetime="2015-06-30">30 June 2015</time></span></h2>
<time class="dt-updated" datetime="2015-07-01">1 July 2015</time></span></h2>

<div data-fill-with="spec-metadata">
<dl>
Expand Down Expand Up @@ -151,8 +151,7 @@ <h2 class="no-num no-toc no-ref heading settled" id="contents"><span class="cont
Interface <code class="idl"><span>Event</span></code></span></a>
<li><a href="#interface-customevent"><span class="secno">3.3</span> <span class="content">
Interface <code class="idl"><span>CustomEvent</span></code></span></a>
<li><a href="#constructing-events"><span class="secno">3.4</span> <span class="content">
Constructing events</span></a>
<li><a href="#constructing-events"><span class="secno">3.4</span> <span class="content">Constructing events</span></a>
<li><a href="#defining-event-interfaces"><span class="secno">3.5</span> <span class="content">Defining event interfaces</span></a>
<li><a href="#interface-eventtarget"><span class="secno">3.6</span> <span class="content">
Interface <code class="idl"><span>EventTarget</span></code></span></a>
Expand Down Expand Up @@ -1234,39 +1233,38 @@ <h3 class="heading settled" data-level="3.3" id="interface-customevent"><span cl



<h3 class="heading settled" data-level="3.4" id="constructing-events"><span class="secno">3.4. </span><span class="content">
Constructing events</span><a class="self-link" href="#constructing-events"></a></h3>
<h3 class="heading settled" data-level="3.4" id="constructing-events"><span class="secno">3.4. </span><span class="content">Constructing events</span><a class="self-link" href="#constructing-events"></a></h3>


<p>When a <dfn data-dfn-for="Event" data-dfn-type="dfn" data-export="" id="concept-event-constructor">constructor<a class="self-link" href="#concept-event-constructor"></a></dfn> of the <code class="idl"><a data-link-type="idl" href="#event">Event</a></code>
interface, or of an interface that inherits from the <code class="idl"><a data-link-type="idl" href="#event">Event</a></code> interface, is
<p>When a <dfn data-dfn-for="Event" data-dfn-type="dfn" data-export="" id="concept-event-constructor">constructor<a class="self-link" href="#concept-event-constructor"></a></dfn> of the
<code class="idl"><a data-link-type="idl" href="#event">Event</a></code> interface, or of an interface that inherits from the <code class="idl"><a data-link-type="idl" href="#event">Event</a></code> interface, is
invoked, these steps must be run:</p>


<ol>

<li>Create an <a data-link-type="dfn" href="#concept-event">event</a> that uses the
interface the constructor was invoked upon.
<li>
<p>Create an <a data-link-type="dfn" href="#concept-event">event</a> that uses the interface the constructor was invoked upon.


<li>Set its <a data-link-type="dfn" href="#initialized-flag">initialized flag</a>.
</p>
<li>
<p>Set its <a data-link-type="dfn" href="#initialized-flag">initialized flag</a>.


<li>Initialize the <code class="idl"><a data-link-type="idl" href="#dom-event-type">type</a></code> attribute to
the <var>type</var> argument.
</p>
<li>
<p>Initialize the <code class="idl"><a data-link-type="idl" href="#dom-event-type">type</a></code> attribute to the <var>type</var> argument.


<li>If there is an <var>eventInitDict</var> argument then for each
<a data-link-type="dfn" href="https://heycam.github.io/webidl/#dfn-dictionary-member">dictionary member</a> defined therein find
the attribute on <a data-link-type="dfn" href="#concept-event">event</a> whose
<a data-link-type="dfn" href="https://heycam.github.io/webidl/#dfn-identifier">identifier</a> matches the key of
the <a data-link-type="dfn" href="https://heycam.github.io/webidl/#dfn-dictionary-member">dictionary member</a> and then
set the attribute to the value of that
<a data-link-type="dfn" href="https://heycam.github.io/webidl/#dfn-dictionary-member">dictionary member</a>.
</p>
<li>
<p>If there is an <var>eventInitDict</var> argument, then for each
<a data-link-type="dfn" href="https://heycam.github.io/webidl/#dfn-dictionary-member">dictionary member</a> present, find the attribute on <a data-link-type="dfn" href="#concept-event">event</a> whose
<a data-link-type="dfn" href="https://heycam.github.io/webidl/#dfn-identifier">identifier</a> matches the key of the <a data-link-type="dfn" href="https://heycam.github.io/webidl/#dfn-dictionary-member">dictionary member</a> and then set the
attribute to the value of that <a data-link-type="dfn" href="https://heycam.github.io/webidl/#dfn-dictionary-member">dictionary member</a>.


<li>Return the <a data-link-type="dfn" href="#concept-event">event</a>.
</ol>
</p>
<li>
<p>Return the <a data-link-type="dfn" href="#concept-event">event</a>.
</p></ol>



Expand Down

0 comments on commit 12887d3

Please sign in to comment.