Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[] (0) Try to clarify WindowProxy.
git-svn-id: http://svn.whatwg.org/webapps@4086 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Oct 6, 2009
1 parent b288f7a commit 6329cbc
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 12 deletions.
28 changes: 22 additions & 6 deletions index
Expand Up @@ -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>-->
Expand Down Expand Up @@ -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>

Expand Down
27 changes: 22 additions & 5 deletions source
Expand Up @@ -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>

Expand Down
2 changes: 1 addition & 1 deletion vocabs-index
Expand Up @@ -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>
Expand Down

0 comments on commit 6329cbc

Please sign in to comment.