Skip to content
Permalink
Browse files

[giow] (3) Try to make event handler scope chains more accurate.

Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=25120
Affected topics: DOM APIs

git-svn-id: http://svn.whatwg.org/webapps@8595 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
Hixie committed May 1, 2014
1 parent a41fabb commit a7f52cc38c5ae6cb6dad681a85bff0935894b8a4
Showing with 43 additions and 7 deletions.
  1. +14 −2 complete.html
  2. +14 −2 index
  3. +15 −3 source

<dd>

<ol><li>Let <var title="">Scope</var> be the result of NewObjectEnvironment(<var title="">document</var>, the <var title="">global environment</var>).</li>
<ol><li>

<p>If <var title="">H</var> is an element's <a href=#event-handlers title="event handlers">event
handler</a>, then let <var title="">Scope</var> be the result of
NewObjectEnvironment(<var title="">document</var>, the <var title="">global
environment</var>).</p>

<p>Otherwise, <var title="">H</var> is a <code><a href=#window>Window</a></code> object's <a href=#event-handlers title="event
handlers">event handler</a>: let <var title="">Scope</var> be the <var title="">global environment</var>.</p>

</li>

<!--CLEANUP--><!--add <p>s:-->

<li>If <var title="">form owner</var> is not null, let <var title="">Scope</var> be the
result of NewObjectEnvironment(<var title="">&gt;form owner</var>, <var title="">Scope</var>).</li>
result of NewObjectEnvironment(<var title="">form owner</var>, <var title="">Scope</var>).</li>

<li>If <var title="">element</var> is not null, let <var title="">Scope</var> be the
result of NewObjectEnvironment(<var title="">element</var>, <var title="">Scope</var>).</li>
16 index

<dd>

<ol><li>Let <var title="">Scope</var> be the result of NewObjectEnvironment(<var title="">document</var>, the <var title="">global environment</var>).</li>
<ol><li>

<p>If <var title="">H</var> is an element's <a href=#event-handlers title="event handlers">event
handler</a>, then let <var title="">Scope</var> be the result of
NewObjectEnvironment(<var title="">document</var>, the <var title="">global
environment</var>).</p>

<p>Otherwise, <var title="">H</var> is a <code><a href=#window>Window</a></code> object's <a href=#event-handlers title="event
handlers">event handler</a>: let <var title="">Scope</var> be the <var title="">global environment</var>.</p>

</li>

<!--CLEANUP--><!--add <p>s:-->

<li>If <var title="">form owner</var> is not null, let <var title="">Scope</var> be the
result of NewObjectEnvironment(<var title="">&gt;form owner</var>, <var title="">Scope</var>).</li>
result of NewObjectEnvironment(<var title="">form owner</var>, <var title="">Scope</var>).</li>

<li>If <var title="">element</var> is not null, let <var title="">Scope</var> be the
result of NewObjectEnvironment(<var title="">element</var>, <var title="">Scope</var>).</li>
18 source

<ol>

<li>Let <var data-x="">Scope</var> be the result of NewObjectEnvironment(<var
data-x="">document</var>, the <var data-x="">global environment</var>).</li>
<li>

<p>If <var data-x="">H</var> is an element's <span data-x="event handlers">event
handler</span>, then let <var data-x="">Scope</var> be the result of
NewObjectEnvironment(<var data-x="">document</var>, the <var data-x="">global
environment</var>).</p>

<p>Otherwise, <var data-x="">H</var> is a <code>Window</code> object's <span data-x="event
handlers">event handler</span>: let <var data-x="">Scope</var> be the <var
data-x="">global environment</var>.</p>

</li>

<!--CLEANUP--><!--add <p>s:-->

<li>If <var data-x="">form owner</var> is not null, let <var data-x="">Scope</var> be the
result of NewObjectEnvironment(<var data-x="">>form owner</var>, <var
result of NewObjectEnvironment(<var data-x="">form owner</var>, <var
data-x="">Scope</var>).</li>

<li>If <var data-x="">element</var> is not null, let <var data-x="">Scope</var> be the

0 comments on commit a7f52cc

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