Browse files

[] (0) Try to clarify WindowProxy.

git-svn-id: http://svn.whatwg.org/webapps@4086 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
1 parent b288f7a commit 6329cbc2353e7dcc90d938d19ff1ad4c0243318b @Hixie Hixie committed Oct 6, 2009
Showing with 45 additions and 12 deletions.
  1. +22 −6 index
  2. +22 −5 source
  3. +1 −1 vocabs-index
View
28 index
@@ -112,7 +112,7 @@
<div class=head>
<p><a class=logo href=http://www.whatwg.org/ rel=home><img alt=WHATWG src=/images/logo></a></p>
<h1>HTML5</h1>
- <h2 class="no-num no-toc" id=draft-standard-&mdash;-5-october-2009>Draft Standard &mdash; 5 October 2009</h2>
+ <h2 class="no-num no-toc" id=draft-standard-&mdash;-6-october-2009>Draft Standard &mdash; 6 October 2009</h2>
<p>You can take part in this work. <a href=http://www.whatwg.org/mailing-list>Join the working group's discussion list.</a></p>
<p><strong>Web designers!</strong> We have a <a href=http://blog.whatwg.org/faq/>FAQ</a>, a <a href=http://forums.whatwg.org/>forum</a>, and a <a href=http://www.whatwg.org/mailing-list#help>help mailing list</a> for you!</p>
<!--<p class="impl"><strong>Implementors!</strong> We have a <a href="http://www.whatwg.org/mailing-list#implementors">mailing list</a> for you too!</p>-->
@@ -46084,11 +46084,27 @@ document.body.appendChild(outer);</pre>
<p>As mentioned earlier, each <a href=#browsing-context>browsing context</a> has a
<dfn id=windowproxy><code>WindowProxy</code></dfn> object. This object is unusual
- in that it must proxy all operations to the <code><a href=#window>Window</a></code>
- object of the <a href=#browsing-context>browsing context</a>'s <a href=#active-document>active
- document</a>. It is thus indistinguishable from that
- <code><a href=#window>Window</a></code> object in every way, except that it is not equal
- to it.</p>
+ in that all operations that would be performed on it must be
+ performd on the <code><a href=#window>Window</a></code> object of the <a href=#browsing-context>browsing
+ context</a>'s <a href=#active-document>active document</a> instead. It is thus
+ indistinguishable from that <code><a href=#window>Window</a></code> object in every way
+ until the <a href=#browsing-context>browsing context</a> is navigated.</p>
+
+ <p>There is no <code><a href=#windowproxy>WindowProxy</a></code> interface object.</p>
+
+ <div class=example>
+
+ <p>In the following example, the variable <var title="">x</var> is
+ set to the <code><a href=#windowproxy>WindowProxy</a></code> object returned by the <code title=dom-window><a href=#dom-window>window</a></code> accessor on the global scope. All
+ of the expressions following the assignment return true, because in
+ every respect, the <code><a href=#windowproxy>WindowProxy</a></code> object acts like the
+ underlying <code><a href=#window>Window</a></code> object.</p>
+
+ <pre>var x = window;
+x instanceof Window; // true
+x === this; // true</pre>
+
+ </div>
</div>
View
27 source
@@ -55068,11 +55068,28 @@ END:VCARD</pre>
<p>As mentioned earlier, each <span>browsing context</span> has a
<dfn><code>WindowProxy</code></dfn> object. This object is unusual
- in that it must proxy all operations to the <code>Window</code>
- object of the <span>browsing context</span>'s <span>active
- document</span>. It is thus indistinguishable from that
- <code>Window</code> object in every way, except that it is not equal
- to it.</p>
+ in that all operations that would be performed on it must be
+ performd on the <code>Window</code> object of the <span>browsing
+ context</span>'s <span>active document</span> instead. It is thus
+ indistinguishable from that <code>Window</code> object in every way
+ until the <span>browsing context</span> is navigated.</p>
+
+ <p>There is no <code>WindowProxy</code> interface object.</p>
+
+ <div class="example">
+
+ <p>In the following example, the variable <var title="">x</var> is
+ set to the <code>WindowProxy</code> object returned by the <code
+ title="dom-window">window</code> accessor on the global scope. All
+ of the expressions following the assignment return true, because in
+ every respect, the <code>WindowProxy</code> object acts like the
+ underlying <code>Window</code> object.</p>
+
+ <pre>var x = window;
+x instanceof Window; // true
+x === this; // true</pre>
+
+ </div>
</div>
View
2 vocabs-index
@@ -48,7 +48,7 @@
<div class="head">
<p><a class="logo" href="http://www.whatwg.org/" rel="home"><img alt="WHATWG" src="/images/logo"></a></p>
<h1>Microdata Vocabularies: vCard, vEvent, and works</h1>
- <h2 class="no-num no-toc" id="draft-standard-5-october-2009">Draft Standard &mdash; 5 October 2009</h2>
+ <h2 class="no-num no-toc" id="draft-standard-6-october-2009">Draft Standard &mdash; 6 October 2009</h2>
<p>You can take part in this work. <a href="http://www.whatwg.org/mailing-list">Join the working group's discussion list.</a></p>
<dl><dt>This specification:</dt>
<dd><a href="http://www.whatwg.org/specs/web-apps/current-work/">http://www.whatwg.org/specs/web-apps/current-work/</a></dd>

0 comments on commit 6329cbc

Please sign in to comment.