Skip to content
Permalink
Browse files

Allow passing a target override to the dispatch algorithm.

  • Loading branch information...
Ms2ger committed Nov 12, 2013
1 parent 1fb01cf commit d0f2c0bbc940061ac2a4623553de5c26409cce96
Showing with 12 additions and 8 deletions.
  1. +5 −3 Overview.src.html
  2. +7 −5 dom-core.html
@@ -1222,7 +1222,8 @@ <h3>Interface <code>EventTarget</code></h3>
<h3>Dispatching events</h3>

<p>To <dfn title=concept-event-dispatch>dispatch</dfn> an
<span title=concept-event>event</span> to a given object run these steps:
<span title=concept-event>event</span> to a given object, optionally with
a <var title>target override</var>, run these steps:

<ol>
<li><p>Let <var title>event</var> be the
@@ -1231,8 +1232,9 @@ <h3>Dispatching events</h3>
<li><p>Set <var title>event</var>'s <span>dispatch flag</span>.

<li><p>Initialize <var title>event</var>'s
<code title=dom-Event-target>target</code> attribute to the object to which
<var title>event</var> is dispatched.
<code title=dom-Event-target>target</code> attribute to
<var title>target override</var>, if it is given, or the object to which
<var title>event</var> is dispatched otherwise.

<li><p>If <var title>event</var>'s
<code title=dom-Event-target>target</code> attribute value is
@@ -11,7 +11,7 @@
<p><a class="logo" href="//www.whatwg.org/"><img alt="WHATWG" height="100" src="//resources.whatwg.org/logo-dom.svg" width="100"></a></p>

<h1>DOM</h1>
<h2 class="no-num no-toc" id="living-standard-—-last-updated-6-november-2013">Living Standard — Last Updated 6 November 2013</h2>
<h2 class="no-num no-toc" id="living-standard-—-last-updated-12-november-2013">Living Standard — Last Updated 12 November 2013</h2>

<dl>
<dt>This Version:
@@ -45,7 +45,7 @@ <h2 class="no-num no-toc" id="living-standard-—-last-updated-6-november-2013">
<p class="copyright"><a href="http://creativecommons.org/publicdomain/zero/1.0/" rel="license"><img alt="CC0" src="http://i.creativecommons.org/p/zero/1.0/80x15.png"></a>
To the extent possible under law, the editors have waived all copyright and
related or neighboring rights to this work. In addition, as of
6 November 2013, the editors have made this specification available
12 November 2013, the editors have made this specification available
under the
<a href="http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0" rel="license">Open Web Foundation Agreement Version 1.0</a>,
which is available at
@@ -1300,7 +1300,8 @@ <h3 id="interface-eventtarget"><span class="secno">5.6 </span>Interface <code><a
<h3 id="dispatching-events"><span class="secno">5.7 </span>Dispatching events</h3>

<p>To <dfn id="concept-event-dispatch" title="concept-event-dispatch">dispatch</dfn> an
<a href="#concept-event" title="concept-event">event</a> to a given object run these steps:
<a href="#concept-event" title="concept-event">event</a> to a given object, optionally with
a <var title="">target override</var>, run these steps:

<ol>
<li><p>Let <var title="">event</var> be the
@@ -1309,8 +1310,9 @@ <h3 id="dispatching-events"><span class="secno">5.7 </span>Dispatching events</h
<li><p>Set <var title="">event</var>'s <a href="#dispatch-flag">dispatch flag</a>.

<li><p>Initialize <var title="">event</var>'s
<code title="dom-Event-target"><a href="#dom-event-target">target</a></code> attribute to the object to which
<var title="">event</var> is dispatched.
<code title="dom-Event-target"><a href="#dom-event-target">target</a></code> attribute to
<var title="">target override</var>, if it is given, or the object to which
<var title="">event</var> is dispatched otherwise.

<li><p>If <var title="">event</var>'s
<code title="dom-Event-target"><a href="#dom-event-target">target</a></code> attribute value is

0 comments on commit d0f2c0b

Please sign in to comment.
You can’t perform that action at this time.