Skip to content

Commit

Permalink
Add a realm argument to "create an event"
Browse files Browse the repository at this point in the history
  • Loading branch information
domenic authored and annevk committed Oct 27, 2016
1 parent e728c11 commit 64444fa
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
10 changes: 8 additions & 2 deletions dom.bs
Expand Up @@ -75,6 +75,7 @@ urlPrefix: https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#
text: has ever been evaluated flag; for: service worker
urlPrefix: https://tc39.github.io/ecma262/#; spec: ECMASCRIPT
text: Construct; url: sec-construct; type: abstract-op
text: Realm; url: realm; type: dfn
</pre>

<pre class='link-defaults'>
Expand Down Expand Up @@ -963,10 +964,15 @@ must be run, given the arguments <var>type</var> and <var>eventInitDict</var>:
<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>
it, and optionally given a <a>Realm</a> <var>realm</var>, run these steps:</p>

<ol>
<li><p>Create a new object <var>event</var> using <var>eventInterface</var>.
<li>
<p>Create a new object <var>event</var> using <var>eventInterface</var>. If <var>realm</var>
is given, use that Realm; otherwise, use the default behavior defined in Web IDL.

<p class="XXX">As of the time of this writing Web IDL does not yet define any default behavior;
see <a href="https://github.com/heycam/webidl/issues/135">heycam/webidl#135</a>.

<li><p>Set <var>event</var>'s <a>initialized flag</a>.

Expand Down
9 changes: 6 additions & 3 deletions dom.html
Expand Up @@ -71,7 +71,7 @@
<p data-fill-with="logo"><a class="logo" href="https://whatwg.org/"> <img alt="WHATWG" height="100" src="https://resources.whatwg.org/logo-dom.svg"> </a> </p>
<hgroup>
<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="2016-10-24">24 October 2016</time></span></h2>
<h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">Living Standard — Last Updated <time class="dt-updated" datetime="2016-10-27">27 October 2016</time></span></h2>
</hgroup>
<div data-fill-with="spec-metadata">
<dl>
Expand Down Expand Up @@ -728,10 +728,12 @@ <h3 class="heading settled" data-level="3.4" id="constructing-events"><span clas
<p>Return <var>event</var>. </p>
</ol>
<p>To <dfn data-dfn-type="dfn" data-export="" data-lt="creating an event|create an event" id="concept-event-create">create an event<a class="self-link" href="#concept-event-create"></a></dfn> using <var>eventInterface</var>, which must be either <code class="idl"><a data-link-type="idl" href="#event">Event</a></code> or an interface that inherits from
it, run these steps:</p>
it, and optionally given a <a data-link-type="dfn" href="https://tc39.github.io/ecma262/#realm">Realm</a> <var>realm</var>, run these steps:</p>
<ol>
<li>
<p>Create a new object <var>event</var> using <var>eventInterface</var>. </p>
<p>Create a new object <var>event</var> using <var>eventInterface</var>. If <var>realm</var> is given, use that Realm; otherwise, use the default behavior defined in Web IDL. </p>
<p class="XXX">As of the time of this writing Web IDL does not yet define any default behavior;
see <a href="https://github.com/heycam/webidl/issues/135">heycam/webidl#135</a>. </p>
<li>
<p>Set <var>event</var>’s <a data-link-type="dfn" href="#initialized-flag">initialized flag</a>. </p>
<li>
Expand Down Expand Up @@ -6574,6 +6576,7 @@ <h3 class="no-num no-ref heading settled" id="index-defined-elsewhere"><span cla
<a data-link-type="biblio">[ECMASCRIPT]</a> defines the following terms:
<ul>
<li><a href="https://tc39.github.io/ecma262/#sec-construct">Construct</a>
<li><a href="https://tc39.github.io/ecma262/#realm">realm</a>
</ul>
<li>
<a data-link-type="biblio">[ENCODING]</a> defines the following terms:
Expand Down

0 comments on commit 64444fa

Please sign in to comment.