Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[] (0) Try to clarify WindowProxy.
git-svn-id: http://svn.whatwg.org/webapps@4086 340c8d12-0b0e-0410-8428-c7bf67bfef74
- Loading branch information
Showing
with
45 additions
and 12 deletions.
- +22 −6 index
- +22 −5 source
- +1 −1 vocabs-index
|
||
<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> | ||
|