html5/spec Overview.html,1.1981,1.1982

Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv11945

Modified Files:
	Overview.html 
Log Message:
'this' in the global scope in JS shouldn't return the window object, it should return the proxy. Hopefully one day this'll move to the ES specs. (whatwg r2811)

Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.1981
retrieving revision 1.1982
diff -u -d -r1.1981 -r1.1982
--- Overview.html	13 Feb 2009 03:12:20 -0000	1.1981
+++ Overview.html	13 Feb 2009 03:16:34 -0000	1.1982
@@ -37672,6 +37672,11 @@
     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>

Received on Friday, 13 February 2009 03:16:47 UTC