spec/Overview.html 1.1982 2811 'this' in the global scope in JS shouldn

'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)

script's global object
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1982.html#script-s-global-object
script's browsing context
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1982.html#script-s-browsing-context

http://people.w3.org/mike/diffs/html5/spec/Overview.diff.html
http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.1981&r2=1.1982&f=h
http://html5.org/tools/web-apps-tracker?from=2810&to=2811

===================================================================
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:20:44 UTC