Browse files

[giow] (2) 'this' in the global scope in JS shouldn't return the wind…

…ow object, it should return the proxy. Hopefully one day this'll move to the ES specs.

git-svn-id: http://svn.whatwg.org/webapps@2811 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
1 parent f59a9fa commit fbc67192c676e7bccff6f2bbdc2fc67adb5fed02 @Hixie Hixie committed Feb 13, 2009
Showing with 11 additions and 0 deletions.
  1. +5 −0 index
  2. +6 −0 source
View
5 index
@@ -37677,6 +37677,11 @@ interface <dfn id=window>Window</dfn> {
empty object, it can't do anything that interacts with the
environment.</p>
+ <p>If the <a href="#script's-global-object">script's global object</a> is a
+ <code><a href=#window>Window</a></code> object, then in JavaScript, the <code title="">this</code> keyword in the global scope must, contrary to
+ the ECMAScript specification, return the <code><a href=#window>Window</a></code>
+ object's <code><a href=#windowproxy>WindowProxy</a></code> object.</p>
+
</dd>
<dt>A relationship with the <dfn id="script's-browsing-context">script's browsing context</dfn></dt>
View
6 source
@@ -40213,6 +40213,12 @@ interface <dfn>Window</dfn> {
empty object, it can't do anything that interacts with the
environment.</p>
+ <p>If the <span>script's global object</span> is a
+ <code>Window</code> object, then in JavaScript, the <code
+ title="">this</code> keyword in the global scope must, contrary to
+ the ECMAScript specification, return the <code>Window</code>
+ object's <code>WindowProxy</code> object.</p>
+
</dd>
<dt>A relationship with the <dfn>script's browsing context</dfn></dt>

0 comments on commit fbc6719

Please sign in to comment.