Skip to content

Commit

Permalink
[giow] (3) Try to make event handler scope chains more accurate.
Browse files Browse the repository at this point in the history
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 a7f52cc
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 7 deletions.
16 changes: 14 additions & 2 deletions complete.html
Expand Up @@ -73198,10 +73198,22 @@ <h5 id=event-handler-attributes><span class=secno>7.1.5.1 </span>Event handlers<

<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>
Expand Down
16 changes: 14 additions & 2 deletions index
Expand Up @@ -73198,10 +73198,22 @@ typedef <a href=#onbeforeunloadeventhandlernonnull>OnBeforeUnloadEventHandlerNon

<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>
Expand Down
18 changes: 15 additions & 3 deletions source
Expand Up @@ -81863,11 +81863,23 @@ typedef <span>OnBeforeUnloadEventHandlerNonNull</span>? <dfn>OnBeforeUnloadEvent

<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
Expand Down

0 comments on commit a7f52cc

Please sign in to comment.