Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
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> |
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> |