[html5] r4667 - [e] (0) Move WindowProxy section to where it makes more sense. Fixing http://www [...]
whatwg at whatwg.org
whatwg at whatwg.org
Fri Feb 5 15:25:50 PST 2010
Author: ianh
Date: 2010-02-05 15:25:48 -0800 (Fri, 05 Feb 2010)
New Revision: 4667
Modified:
complete.html
index
source
Log:
[e] (0) Move WindowProxy section to where it makes more sense.
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=8690
Modified: complete.html
===================================================================
--- complete.html 2010-02-05 23:16:41 UTC (rev 4666)
+++ complete.html 2010-02-05 23:25:48 UTC (rev 4667)
@@ -695,97 +695,97 @@
<li><a href=#security-1><span class=secno>6.1.4 </span>Security</a></li>
<li><a href=#groupings-of-browsing-contexts><span class=secno>6.1.5 </span>Groupings of browsing contexts</a></li>
<li><a href=#browsing-context-names><span class=secno>6.1.6 </span>Browsing context names</a></ol></li>
- <li><a href=#the-windowproxy-object><span class=secno>6.2 </span>The <code>WindowProxy</code> object</a></li>
- <li><a href=#the-window-object><span class=secno>6.3 </span>The <code>Window</code> object</a>
+ <li><a href=#the-window-object><span class=secno>6.2 </span>The <code>Window</code> object</a>
<ol>
- <li><a href=#security-2><span class=secno>6.3.1 </span>Security</a></li>
- <li><a href=#apis-for-creating-and-navigating-browsing-contexts-by-name><span class=secno>6.3.2 </span>APIs for creating and navigating browsing contexts by name</a></li>
- <li><a href=#accessing-other-browsing-contexts><span class=secno>6.3.3 </span>Accessing other browsing contexts</a></li>
- <li><a href=#named-access-on-the-window-object><span class=secno>6.3.4 </span>Named access on the <code>Window</code> object</a></li>
- <li><a href=#garbage-collection-and-browsing-contexts><span class=secno>6.3.5 </span>Garbage collection and browsing contexts</a></li>
- <li><a href=#browser-interface-elements><span class=secno>6.3.6 </span>Browser interface elements</a></ol></li>
- <li><a href=#origin-0><span class=secno>6.4 </span>Origin</a>
+ <li><a href=#security-2><span class=secno>6.2.1 </span>Security</a></li>
+ <li><a href=#apis-for-creating-and-navigating-browsing-contexts-by-name><span class=secno>6.2.2 </span>APIs for creating and navigating browsing contexts by name</a></li>
+ <li><a href=#accessing-other-browsing-contexts><span class=secno>6.2.3 </span>Accessing other browsing contexts</a></li>
+ <li><a href=#named-access-on-the-window-object><span class=secno>6.2.4 </span>Named access on the <code>Window</code> object</a></li>
+ <li><a href=#garbage-collection-and-browsing-contexts><span class=secno>6.2.5 </span>Garbage collection and browsing contexts</a></li>
+ <li><a href=#browser-interface-elements><span class=secno>6.2.6 </span>Browser interface elements</a></li>
+ <li><a href=#the-windowproxy-object><span class=secno>6.2.7 </span>The <code>WindowProxy</code> object</a></ol></li>
+ <li><a href=#origin-0><span class=secno>6.3 </span>Origin</a>
<ol>
- <li><a href=#relaxing-the-same-origin-restriction><span class=secno>6.4.1 </span>Relaxing the same-origin restriction</a></ol></li>
- <li><a href=#scripting><span class=secno>6.5 </span>Scripting</a>
+ <li><a href=#relaxing-the-same-origin-restriction><span class=secno>6.3.1 </span>Relaxing the same-origin restriction</a></ol></li>
+ <li><a href=#scripting><span class=secno>6.4 </span>Scripting</a>
<ol>
- <li><a href=#introduction-2><span class=secno>6.5.1 </span>Introduction</a></li>
- <li><a href=#enabling-and-disabling-scripting><span class=secno>6.5.2 </span>Enabling and disabling scripting</a></li>
- <li><a href=#processing-model-1><span class=secno>6.5.3 </span>Processing model</a>
+ <li><a href=#introduction-2><span class=secno>6.4.1 </span>Introduction</a></li>
+ <li><a href=#enabling-and-disabling-scripting><span class=secno>6.4.2 </span>Enabling and disabling scripting</a></li>
+ <li><a href=#processing-model-1><span class=secno>6.4.3 </span>Processing model</a>
<ol>
- <li><a href=#definitions-0><span class=secno>6.5.3.1 </span>Definitions</a></li>
- <li><a href=#calling-scripts><span class=secno>6.5.3.2 </span>Calling scripts</a></li>
- <li><a href=#creating-scripts><span class=secno>6.5.3.3 </span>Creating scripts</a></li>
- <li><a href=#killing-scripts><span class=secno>6.5.3.4 </span>Killing scripts</a></ol></li>
- <li><a href=#event-loops><span class=secno>6.5.4 </span>Event loops</a>
+ <li><a href=#definitions-0><span class=secno>6.4.3.1 </span>Definitions</a></li>
+ <li><a href=#calling-scripts><span class=secno>6.4.3.2 </span>Calling scripts</a></li>
+ <li><a href=#creating-scripts><span class=secno>6.4.3.3 </span>Creating scripts</a></li>
+ <li><a href=#killing-scripts><span class=secno>6.4.3.4 </span>Killing scripts</a></ol></li>
+ <li><a href=#event-loops><span class=secno>6.4.4 </span>Event loops</a>
<ol>
- <li><a href=#definitions-1><span class=secno>6.5.4.1 </span>Definitions</a></li>
- <li><a href=#processing-model-2><span class=secno>6.5.4.2 </span>Processing model</a></li>
- <li><a href=#generic-task-sources><span class=secno>6.5.4.3 </span>Generic task sources</a></ol></li>
- <li><a href=#javascript-protocol><span class=secno>6.5.5 </span>The <code title="">javascript:</code> protocol</a></li>
- <li><a href=#events><span class=secno>6.5.6 </span>Events</a>
+ <li><a href=#definitions-1><span class=secno>6.4.4.1 </span>Definitions</a></li>
+ <li><a href=#processing-model-2><span class=secno>6.4.4.2 </span>Processing model</a></li>
+ <li><a href=#generic-task-sources><span class=secno>6.4.4.3 </span>Generic task sources</a></ol></li>
+ <li><a href=#javascript-protocol><span class=secno>6.4.5 </span>The <code title="">javascript:</code> protocol</a></li>
+ <li><a href=#events><span class=secno>6.4.6 </span>Events</a>
<ol>
- <li><a href=#event-handler-attributes><span class=secno>6.5.6.1 </span>Event handlers</a></li>
- <li><a href=#event-handlers-on-elements,-document-objects,-and-window-objects><span class=secno>6.5.6.2 </span>Event handlers on elements, <code>Document</code> objects, and <code>Window</code> objects</a></li>
- <li><a href=#event-firing><span class=secno>6.5.6.3 </span>Event firing</a></li>
- <li><a href=#events-and-the-window-object><span class=secno>6.5.6.4 </span>Events and the <code>Window</code> object</a></li>
- <li><a href=#runtime-script-errors><span class=secno>6.5.6.5 </span>Runtime script errors</a></ol></ol></li>
- <li><a href=#timers><span class=secno>6.6 </span>Timers</a></li>
- <li><a href=#user-prompts><span class=secno>6.7 </span>User prompts</a>
+ <li><a href=#event-handler-attributes><span class=secno>6.4.6.1 </span>Event handlers</a></li>
+ <li><a href=#event-handlers-on-elements,-document-objects,-and-window-objects><span class=secno>6.4.6.2 </span>Event handlers on elements, <code>Document</code> objects, and <code>Window</code> objects</a></li>
+ <li><a href=#event-firing><span class=secno>6.4.6.3 </span>Event firing</a></li>
+ <li><a href=#events-and-the-window-object><span class=secno>6.4.6.4 </span>Events and the <code>Window</code> object</a></li>
+ <li><a href=#runtime-script-errors><span class=secno>6.4.6.5 </span>Runtime script errors</a></ol></ol></li>
+ <li><a href=#timers><span class=secno>6.5 </span>Timers</a></li>
+ <li><a href=#user-prompts><span class=secno>6.6 </span>User prompts</a>
<ol>
- <li><a href=#simple-dialogs><span class=secno>6.7.1 </span>Simple dialogs</a></li>
- <li><a href=#printing><span class=secno>6.7.2 </span>Printing</a></li>
- <li><a href=#dialogs-implemented-using-separate-documents><span class=secno>6.7.3 </span>Dialogs implemented using separate documents</a></ol></li>
- <li><a href=#system-state-and-capabilities><span class=secno>6.8 </span>System state and capabilities</a>
+ <li><a href=#simple-dialogs><span class=secno>6.6.1 </span>Simple dialogs</a></li>
+ <li><a href=#printing><span class=secno>6.6.2 </span>Printing</a></li>
+ <li><a href=#dialogs-implemented-using-separate-documents><span class=secno>6.6.3 </span>Dialogs implemented using separate documents</a></ol></li>
+ <li><a href=#system-state-and-capabilities><span class=secno>6.7 </span>System state and capabilities</a>
<ol>
- <li><a href=#client-identification><span class=secno>6.8.1 </span>Client identification</a></li>
- <li><a href=#custom-handlers><span class=secno>6.8.2 </span>Custom scheme and content handlers</a>
+ <li><a href=#client-identification><span class=secno>6.7.1 </span>Client identification</a></li>
+ <li><a href=#custom-handlers><span class=secno>6.7.2 </span>Custom scheme and content handlers</a>
<ol>
- <li><a href=#security-and-privacy><span class=secno>6.8.2.1 </span>Security and privacy</a></li>
- <li><a href=#sample-handler-impl><span class=secno>6.8.2.2 </span>Sample user interface</a></ol></li>
- <li><a href=#manually-releasing-the-storage-mutex><span class=secno>6.8.3 </span>Manually releasing the storage mutex</a></ol></li>
- <li><a href=#offline><span class=secno>6.9 </span>Offline Web applications</a>
+ <li><a href=#security-and-privacy><span class=secno>6.7.2.1 </span>Security and privacy</a></li>
+ <li><a href=#sample-handler-impl><span class=secno>6.7.2.2 </span>Sample user interface</a></ol></li>
+ <li><a href=#manually-releasing-the-storage-mutex><span class=secno>6.7.3 </span>Manually releasing the storage mutex</a></ol></li>
+ <li><a href=#offline><span class=secno>6.8 </span>Offline Web applications</a>
<ol>
- <li><a href=#introduction-3><span class=secno>6.9.1 </span>Introduction</a>
+ <li><a href=#introduction-3><span class=secno>6.8.1 </span>Introduction</a>
<ol>
- <li><a href=#appcacheevents><span class=secno>6.9.1.1 </span>Event summary</a></ol></li>
- <li><a href=#appcache><span class=secno>6.9.2 </span>Application caches</a></li>
- <li><a href=#manifests><span class=secno>6.9.3 </span>The cache manifest syntax</a>
+ <li><a href=#appcacheevents><span class=secno>6.8.1.1 </span>Event summary</a></ol></li>
+ <li><a href=#appcache><span class=secno>6.8.2 </span>Application caches</a></li>
+ <li><a href=#manifests><span class=secno>6.8.3 </span>The cache manifest syntax</a>
<ol>
- <li><a href=#a-sample-manifest><span class=secno>6.9.3.1 </span>A sample manifest</a></li>
- <li><a href=#writing-cache-manifests><span class=secno>6.9.3.2 </span>Writing cache manifests</a></li>
- <li><a href=#parsing-cache-manifests><span class=secno>6.9.3.3 </span>Parsing cache manifests</a></ol></li>
- <li><a href=#downloading-or-updating-an-application-cache><span class=secno>6.9.4 </span>Downloading or updating an application cache</a></li>
- <li><a href=#the-application-cache-selection-algorithm><span class=secno>6.9.5 </span>The application cache selection algorithm</a></li>
- <li><a href=#changesToNetworkingModel><span class=secno>6.9.6 </span>Changes to the networking model</a></li>
- <li><a href=#expiring-application-caches><span class=secno>6.9.7 </span>Expiring application caches</a></li>
- <li><a href=#application-cache-api><span class=secno>6.9.8 </span>Application cache API</a></li>
- <li><a href=#browser-state><span class=secno>6.9.9 </span>Browser state</a></ol></li>
- <li><a href=#history><span class=secno>6.10 </span>Session history and navigation</a>
+ <li><a href=#a-sample-manifest><span class=secno>6.8.3.1 </span>A sample manifest</a></li>
+ <li><a href=#writing-cache-manifests><span class=secno>6.8.3.2 </span>Writing cache manifests</a></li>
+ <li><a href=#parsing-cache-manifests><span class=secno>6.8.3.3 </span>Parsing cache manifests</a></ol></li>
+ <li><a href=#downloading-or-updating-an-application-cache><span class=secno>6.8.4 </span>Downloading or updating an application cache</a></li>
+ <li><a href=#the-application-cache-selection-algorithm><span class=secno>6.8.5 </span>The application cache selection algorithm</a></li>
+ <li><a href=#changesToNetworkingModel><span class=secno>6.8.6 </span>Changes to the networking model</a></li>
+ <li><a href=#expiring-application-caches><span class=secno>6.8.7 </span>Expiring application caches</a></li>
+ <li><a href=#application-cache-api><span class=secno>6.8.8 </span>Application cache API</a></li>
+ <li><a href=#browser-state><span class=secno>6.8.9 </span>Browser state</a></ol></li>
+ <li><a href=#history><span class=secno>6.9 </span>Session history and navigation</a>
<ol>
- <li><a href=#the-session-history-of-browsing-contexts><span class=secno>6.10.1 </span>The session history of browsing contexts</a></li>
- <li><a href=#the-history-interface><span class=secno>6.10.2 </span>The <code>History</code> interface</a></li>
- <li><a href=#the-location-interface><span class=secno>6.10.3 </span>The <code>Location</code> interface</a>
+ <li><a href=#the-session-history-of-browsing-contexts><span class=secno>6.9.1 </span>The session history of browsing contexts</a></li>
+ <li><a href=#the-history-interface><span class=secno>6.9.2 </span>The <code>History</code> interface</a></li>
+ <li><a href=#the-location-interface><span class=secno>6.9.3 </span>The <code>Location</code> interface</a>
<ol>
- <li><a href=#security-3><span class=secno>6.10.3.1 </span>Security</a></ol></li>
- <li><a href=#history-notes><span class=secno>6.10.4 </span>Implementation notes for session history</a></ol></li>
- <li><a href=#browsing-the-web><span class=secno>6.11 </span>Browsing the Web</a>
+ <li><a href=#security-3><span class=secno>6.9.3.1 </span>Security</a></ol></li>
+ <li><a href=#history-notes><span class=secno>6.9.4 </span>Implementation notes for session history</a></ol></li>
+ <li><a href=#browsing-the-web><span class=secno>6.10 </span>Browsing the Web</a>
<ol>
- <li><a href=#navigating-across-documents><span class=secno>6.11.1 </span>Navigating across documents</a></li>
- <li><a href=#read-html><span class=secno>6.11.2 </span>Page load processing model for HTML files</a></li>
- <li><a href=#read-xml><span class=secno>6.11.3 </span>Page load processing model for XML files</a></li>
- <li><a href=#read-text><span class=secno>6.11.4 </span>Page load processing model for text files</a></li>
- <li><a href=#read-image><span class=secno>6.11.5 </span>Page load processing model for images</a></li>
- <li><a href=#read-plugin><span class=secno>6.11.6 </span>Page load processing model for content that uses plugins</a></li>
- <li><a href=#read-ua-inline><span class=secno>6.11.7 </span>Page load processing model for inline content that doesn't have a DOM</a></li>
- <li><a href=#scroll-to-fragid><span class=secno>6.11.8 </span>Navigating to a fragment identifier</a></li>
- <li><a href=#history-traversal><span class=secno>6.11.9 </span>History traversal</a>
+ <li><a href=#navigating-across-documents><span class=secno>6.10.1 </span>Navigating across documents</a></li>
+ <li><a href=#read-html><span class=secno>6.10.2 </span>Page load processing model for HTML files</a></li>
+ <li><a href=#read-xml><span class=secno>6.10.3 </span>Page load processing model for XML files</a></li>
+ <li><a href=#read-text><span class=secno>6.10.4 </span>Page load processing model for text files</a></li>
+ <li><a href=#read-image><span class=secno>6.10.5 </span>Page load processing model for images</a></li>
+ <li><a href=#read-plugin><span class=secno>6.10.6 </span>Page load processing model for content that uses plugins</a></li>
+ <li><a href=#read-ua-inline><span class=secno>6.10.7 </span>Page load processing model for inline content that doesn't have a DOM</a></li>
+ <li><a href=#scroll-to-fragid><span class=secno>6.10.8 </span>Navigating to a fragment identifier</a></li>
+ <li><a href=#history-traversal><span class=secno>6.10.9 </span>History traversal</a>
<ol>
- <li><a href=#event-definitions><span class=secno>6.11.9.1 </span>Event definitions</a></ol></li>
- <li><a href=#unloading-documents><span class=secno>6.11.10 </span>Unloading documents</a>
+ <li><a href=#event-definitions><span class=secno>6.10.9.1 </span>Event definitions</a></ol></li>
+ <li><a href=#unloading-documents><span class=secno>6.10.10 </span>Unloading documents</a>
<ol>
- <li><a href=#event-definition><span class=secno>6.11.10.1 </span>Event definition</a></ol></li>
- <li><a href=#aborting-a-document-load><span class=secno>6.11.11 </span>Aborting a document load</a></ol></ol></li>
+ <li><a href=#event-definition><span class=secno>6.10.10.1 </span>Event definition</a></ol></li>
+ <li><a href=#aborting-a-document-load><span class=secno>6.10.11 </span>Aborting a document load</a></ol></ol></li>
<li><a href=#webstorage><span class=secno>7 </span>Web Storage</a>
<ol>
<li><a href=#introduction-4><span class=secno>7.1 </span>Introduction</a></li>
@@ -51679,46 +51679,10 @@
</ol></div>
- <div class=impl>
- <h3 id=the-windowproxy-object><span class=secno>6.2 </span>The <code><a href=#windowproxy>WindowProxy</a></code> object</h3>
+ <h3 id=the-window-object><span class=secno>6.2 </span>The <code><a href=#window>Window</a></code> object</h3>
- <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 all operations that would be performed on it must be
- performed 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>
-
- <p class=note>The <code><a href=#windowproxy>WindowProxy</a></code> object allows scripts
- to act as if each <a href=#browsing-context>browsing context</a> had a single
- <code><a href=#window>Window</a></code> object, while still keeping separate
- <code><a href=#window>Window</a></code> objects for each <code>Document</code>.</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 object. 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>
-
-
-
- <h3 id=the-window-object><span class=secno>6.3 </span>The <code><a href=#window>Window</a></code> object</h3>
-
<pre class=idl>[OverrideBuiltins, ReplaceableNamedProperties] <!-- XXX http://www.w3.org/Bugs/Public/show_bug.cgi?id=8241 -->
interface <dfn id=window>Window</dfn> {
// the current browsing context
@@ -51867,7 +51831,7 @@
<div class=impl>
- <h4 id=security-2><span class=secno>6.3.1 </span>Security</h4>
+ <h4 id=security-2><span class=secno>6.2.1 </span>Security</h4>
<p>User agents must raise a <code><a href=#security_err>SECURITY_ERR</a></code> exception
whenever any of the members of a <code><a href=#window>Window</a></code> object are
@@ -51918,7 +51882,7 @@
- <h4 id=apis-for-creating-and-navigating-browsing-contexts-by-name><span class=secno>6.3.2 </span>APIs for creating and navigating browsing contexts by name</h4>
+ <h4 id=apis-for-creating-and-navigating-browsing-contexts-by-name><span class=secno>6.2.2 </span>APIs for creating and navigating browsing contexts by name</h4>
<dl class=domintro><dt><var title="">window</var> = <var title="">window</var> . <code title=dom-open><a href=#dom-open>open</a></code>( [ <var title="">url</var> [, <var title="">target</var> [, <var title="">features</var> [, <var title="">replace</var> ] ] ] ] )</dt>
@@ -52042,7 +52006,7 @@
</div>
- <h4 id=accessing-other-browsing-contexts><span class=secno>6.3.3 </span>Accessing other browsing contexts</h4>
+ <h4 id=accessing-other-browsing-contexts><span class=secno>6.2.3 </span>Accessing other browsing contexts</h4>
<dl class=domintro><dt><var title="">window</var> . <code title=dom-length><a href=#dom-length>length</a></code></dt>
@@ -52097,7 +52061,7 @@
- <h4 id=named-access-on-the-window-object><span class=secno>6.3.4 </span>Named access on the <code><a href=#window>Window</a></code> object</h4>
+ <h4 id=named-access-on-the-window-object><span class=secno>6.2.4 </span>Named access on the <code><a href=#window>Window</a></code> object</h4>
<dl class=domintro><dt><var title="">window</var>[<var title="">name</var>]</dt>
@@ -52181,7 +52145,7 @@
<div class=impl>
- <h4 id=garbage-collection-and-browsing-contexts><span class=secno>6.3.5 </span>Garbage collection and browsing contexts</h4>
+ <h4 id=garbage-collection-and-browsing-contexts><span class=secno>6.2.5 </span>Garbage collection and browsing contexts</h4>
<p>A <a href=#browsing-context>browsing context</a> has a strong reference to each of
its <code>Document</code>s and its <code><a href=#windowproxy>WindowProxy</a></code> object,
@@ -52232,7 +52196,7 @@
- <h4 id=browser-interface-elements><span class=secno>6.3.6 </span>Browser interface elements</h4>
+ <h4 id=browser-interface-elements><span class=secno>6.2.6 </span>Browser interface elements</h4>
<p>To allow Web pages to integrate with Web browsers, certain Web
browser interface elements are exposed in a limited way to scripts
@@ -52367,7 +52331,45 @@
<div class=impl>
- <h3 id=origin-0><span class=secno>6.4 </span>Origin</h3>
+ <h4 id=the-windowproxy-object><span class=secno>6.2.7 </span>The <code><a href=#windowproxy>WindowProxy</a></code> object</h4>
+
+
+ <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 all operations that would be performed on it must be
+ performed 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>
+
+ <p class=note>The <code><a href=#windowproxy>WindowProxy</a></code> object allows scripts
+ to act as if each <a href=#browsing-context>browsing context</a> had a single
+ <code><a href=#window>Window</a></code> object, while still keeping separate
+ <code><a href=#window>Window</a></code> objects for each <code>Document</code>.</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 object. 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>
+
+
+
+ <div class=impl>
+
+ <h3 id=origin-0><span class=secno>6.3 </span>Origin</h3>
<!-- Hallowed are the Ori -->
<p>The <dfn id=origin>origin</dfn> of a resource and the <dfn id=effective-script-origin>effective script
@@ -52722,7 +52724,7 @@
</ol></div>
- <h4 id=relaxing-the-same-origin-restriction><span class=secno>6.4.1 </span>Relaxing the same-origin restriction</h4>
+ <h4 id=relaxing-the-same-origin-restriction><span class=secno>6.3.1 </span>Relaxing the same-origin restriction</h4>
<dl class=domintro><dt><var title="">document</var> . <code title=dom-document-domain><a href=#dom-document-domain>domain</a></code> [ = <var title="">domain</var> ]</dt>
@@ -52861,9 +52863,9 @@
- <h3 id=scripting><span class=secno>6.5 </span>Scripting</h3>
+ <h3 id=scripting><span class=secno>6.4 </span>Scripting</h3>
- <h4 id=introduction-2><span class=secno>6.5.1 </span>Introduction</h4>
+ <h4 id=introduction-2><span class=secno>6.4.1 </span>Introduction</h4>
<p>Various mechanisms can cause author-provided executable code to
run in the context of a document. These mechanisms include, but are
@@ -52885,7 +52887,7 @@
</ul><div class=impl>
- <h4 id=enabling-and-disabling-scripting><span class=secno>6.5.2 </span>Enabling and disabling scripting</h4>
+ <h4 id=enabling-and-disabling-scripting><span class=secno>6.4.2 </span>Enabling and disabling scripting</h4>
<p><dfn id=concept-bc-script title=concept-bc-script>Scripting is enabled</dfn> in a
<em><a href=#browsing-context>browsing context</a></em> when all of the
@@ -52923,9 +52925,9 @@
<div class=impl>
<!-- SCRIPT EXEC (marks areas related to creation of scripts) -->
- <h4 id=processing-model-1><span class=secno>6.5.3 </span>Processing model</h4>
+ <h4 id=processing-model-1><span class=secno>6.4.3 </span>Processing model</h4>
- <h5 id=definitions-0><span class=secno>6.5.3.1 </span>Definitions</h5>
+ <h5 id=definitions-0><span class=secno>6.4.3.1 </span>Definitions</h5>
<p>A <dfn id=concept-script title=concept-script>script</dfn> has:</p>
@@ -53041,7 +53043,7 @@
<div class=impl>
- <h5 id=calling-scripts><span class=secno>6.5.3.2 </span>Calling scripts</h5>
+ <h5 id=calling-scripts><span class=secno>6.4.3.2 </span>Calling scripts</h5>
<p>When a user agent is to <dfn id=jump-to-a-code-entry-point>jump to a code entry-point</dfn> for
a <a href=#concept-script title=concept-script>script</a>, for example to invoke
@@ -53069,7 +53071,7 @@
<div class=impl>
- <h5 id=creating-scripts><span class=secno>6.5.3.3 </span>Creating scripts</h5>
+ <h5 id=creating-scripts><span class=secno>6.4.3.3 </span>Creating scripts</h5>
<p>When the specification says that a <a href=#concept-script title=concept-script>script</a> is to be <dfn id=create-a-script title="create a
script">created</dfn>, given some script source, its scripting
@@ -53141,7 +53143,7 @@
<div class=impl>
- <h5 id=killing-scripts><span class=secno>6.5.3.4 </span>Killing scripts</h5>
+ <h5 id=killing-scripts><span class=secno>6.4.3.4 </span>Killing scripts</h5>
<p>User agents may impose resource limitations on scripts, for
example CPU quotas, memory limits, total execution time limits, or
@@ -53175,9 +53177,9 @@
<div class=impl>
- <h4 id=event-loops><span class=secno>6.5.4 </span>Event loops</h4>
+ <h4 id=event-loops><span class=secno>6.4.4 </span>Event loops</h4>
- <h5 id=definitions-1><span class=secno>6.5.4.1 </span>Definitions</h5>
+ <h5 id=definitions-1><span class=secno>6.4.4.1 </span>Definitions</h5>
<p>To coordinate events, user interaction, scripts, rendering,
networking, and so forth, user agents must use <dfn id=event-loop title="event
@@ -53278,7 +53280,7 @@
release the <a href=#storage-mutex>storage mutex</a>.</p>
- <h5 id=processing-model-2><span class=secno>6.5.4.2 </span>Processing model</h5>
+ <h5 id=processing-model-2><span class=secno>6.4.4.2 </span>Processing model</h5>
<p>An <a href=#event-loop>event loop</a> must continually run through the
following steps for as long as it exists:</p>
@@ -53362,7 +53364,7 @@
<div class=impl>
- <h5 id=generic-task-sources><span class=secno>6.5.4.3 </span>Generic task sources</h5>
+ <h5 id=generic-task-sources><span class=secno>6.4.4.3 </span>Generic task sources</h5>
<p>The following <a href=#task-source title="task source">task sources</a> are
used by a number of mostly unrelated features in this and other
@@ -53427,7 +53429,7 @@
<div class=impl>
<!-- SCRIPT EXEC -->
- <h4 id=javascript-protocol><span class=secno>6.5.5 </span><dfn title="javascript protocol">The <code title="">javascript:</code> protocol</dfn></h4>
+ <h4 id=javascript-protocol><span class=secno>6.4.5 </span><dfn title="javascript protocol">The <code title="">javascript:</code> protocol</dfn></h4>
<p>When a <a href=#url>URL</a> using the <code title="">javascript:</code> protocol is <dfn id=concept-js-deref title=concept-js-deref>dereferenced</dfn>, the user agent must run
the following steps:</p>
@@ -53546,11 +53548,11 @@
- <h4 id=events><span class=secno>6.5.6 </span>Events</h4>
+ <h4 id=events><span class=secno>6.4.6 </span>Events</h4>
<div class=impl>
- <h5 id=event-handler-attributes><span class=secno>6.5.6.1 </span>Event handlers</h5>
+ <h5 id=event-handler-attributes><span class=secno>6.4.6.1 </span>Event handlers</h5>
</div>
@@ -53802,7 +53804,7 @@
<div class=impl>
- <h5 id=event-handlers-on-elements,-document-objects,-and-window-objects><span class=secno>6.5.6.2 </span>Event handlers on elements, <code>Document</code> objects, and <code><a href=#window>Window</a></code> objects</h5>
+ <h5 id=event-handlers-on-elements,-document-objects,-and-window-objects><span class=secno>6.4.6.2 </span>Event handlers on elements, <code>Document</code> objects, and <code><a href=#window>Window</a></code> objects</h5>
<p>The following are the <a href=#event-handlers>event handlers</a> (and their
corresponding <a href=#event-handler-event-type title="event handler event type">event handler
@@ -53916,7 +53918,7 @@
<div class=impl>
- <h5 id=event-firing><span class=secno>6.5.6.3 </span>Event firing</h5>
+ <h5 id=event-firing><span class=secno>6.4.6.3 </span>Event firing</h5>
<p>Certain operations and methods are defined as firing events on
elements. For example, the <code title=dom-click><a href=#dom-click>click()</a></code>
@@ -53980,7 +53982,7 @@
<div class=impl>
- <h5 id=events-and-the-window-object><span class=secno>6.5.6.4 </span>Events and the <code><a href=#window>Window</a></code> object</h5>
+ <h5 id=events-and-the-window-object><span class=secno>6.4.6.4 </span>Events and the <code><a href=#window>Window</a></code> object</h5>
<p>When an event is dispatched at a DOM node in a
<code>Document</code> in a <a href=#browsing-context>browsing context</a>, if the
@@ -54003,7 +54005,7 @@
<div class=impl>
- <h5 id=runtime-script-errors><span class=secno>6.5.6.5 </span>Runtime script errors</h5>
+ <h5 id=runtime-script-errors><span class=secno>6.4.6.5 </span>Runtime script errors</h5>
<p><i>This section only applies to user agents that support
scripting in general and JavaScript in particular.</i></p>
@@ -54053,7 +54055,7 @@
</dl></div>
- <h3 id=timers><span class=secno>6.6 </span>Timers</h3>
+ <h3 id=timers><span class=secno>6.5 </span>Timers</h3>
<p>The <code title=dom-windowtimers-setTimeout><a href=#dom-windowtimers-settimeout>setTimeout()</a></code>
and <code title=dom-windowtimers-setInterval><a href=#dom-windowtimers-setinterval>setInterval()</a></code>
@@ -54335,7 +54337,7 @@
- <h3 id=user-prompts><span class=secno>6.7 </span>User prompts</h3>
+ <h3 id=user-prompts><span class=secno>6.6 </span>User prompts</h3>
<!--
v2 ideas:
@@ -54346,7 +54348,7 @@
- with a solution for the mobile space
-->
- <h4 id=simple-dialogs><span class=secno>6.7.1 </span>Simple dialogs</h4>
+ <h4 id=simple-dialogs><span class=secno>6.6.1 </span>Simple dialogs</h4>
<dl class=domintro><dt><var title="">window</var> . <code title=dom-alert><a href=#dom-alert>alert</a></code>(<var title="">message</var>)</dt>
<dd>
@@ -54413,7 +54415,7 @@
</div>
- <h4 id=printing><span class=secno>6.7.2 </span>Printing</h4>
+ <h4 id=printing><span class=secno>6.6.2 </span>Printing</h4>
<dl class=domintro><dt><var title="">window</var> . <code title=dom-print><a href=#dom-print>print</a></code>()</dt>
@@ -54507,7 +54509,7 @@
</ol></div>
- <h4 id=dialogs-implemented-using-separate-documents><span class=secno>6.7.3 </span>Dialogs implemented using separate documents</h4>
+ <h4 id=dialogs-implemented-using-separate-documents><span class=secno>6.6.3 </span>Dialogs implemented using separate documents</h4>
<dl class=domintro><dt><var title="">result</var> = <var title="">window</var> . <code title=dom-showModalDialog><a href=#dom-showmodaldialog>showModalDialog</a></code>(<var title="">url</var> [, <var title="">argument</var>] )</dt>
@@ -54724,7 +54726,7 @@
- <h3 id=system-state-and-capabilities><span class=secno>6.8 </span>System state and capabilities</h3>
+ <h3 id=system-state-and-capabilities><span class=secno>6.7 </span>System state and capabilities</h3>
<div class=impl>
@@ -54789,7 +54791,7 @@
</div>
- <h4 id=client-identification><span class=secno>6.8.1 </span>Client identification</h4>
+ <h4 id=client-identification><span class=secno>6.7.1 </span>Client identification</h4>
<p>In certain cases, despite the best efforts of the entire
industry, Web browsers have bugs and limitations that Web authors
@@ -54859,7 +54861,7 @@
</dl></div>
- <h4 id=custom-handlers><span class=secno>6.8.2 </span>Custom scheme and content handlers</h4>
+ <h4 id=custom-handlers><span class=secno>6.7.2 </span>Custom scheme and content handlers</h4>
<p>The <dfn id=dom-navigator-registerprotocolhandler title=dom-navigator-registerProtocolHandler><code>registerProtocolHandler()</code></dfn>
method allows Web sites to register themselves as possible handlers
@@ -55051,7 +55053,7 @@
<div class=impl>
- <h5 id=security-and-privacy><span class=secno>6.8.2.1 </span>Security and privacy</h5>
+ <h5 id=security-and-privacy><span class=secno>6.7.2.1 </span>Security and privacy</h5>
<p>These mechanisms can introduce a number of concerns, in
particular privacy concerns.</p>
@@ -55135,7 +55137,7 @@
<div class=impl>
- <h5 id=sample-handler-impl><span class=secno>6.8.2.2 </span>Sample user interface</h5>
+ <h5 id=sample-handler-impl><span class=secno>6.7.2.2 </span>Sample user interface</h5>
<p><i>This section is non-normative.</i></p>
@@ -55181,7 +55183,7 @@
- <h4 id=manually-releasing-the-storage-mutex><span class=secno>6.8.3 </span>Manually releasing the storage mutex</h4>
+ <h4 id=manually-releasing-the-storage-mutex><span class=secno>6.7.3 </span>Manually releasing the storage mutex</h4>
<dl class=domintro><dt><var title="">window</var> . <code title=dom-navigator><a href=#dom-navigator>navigator</a></code> . <code title=dom-navigator-yieldForStorageUpdates><a href=#dom-navigator-yieldforstorageupdates>yieldForStorageUpdates</a></code>()</dt>
@@ -55214,7 +55216,7 @@
- <h3 id=offline><span class=secno>6.9 </span>Offline Web applications</h3>
+ <h3 id=offline><span class=secno>6.8 </span>Offline Web applications</h3>
<!-- v2 ideas for appcache:
@@ -55258,7 +55260,7 @@
-->
- <h4 id=introduction-3><span class=secno>6.9.1 </span>Introduction</h4>
+ <h4 id=introduction-3><span class=secno>6.8.1 </span>Introduction</h4>
<p><i>This section is non-normative.</i></p>
@@ -55338,7 +55340,7 @@
applications served over TLS can be made to work offline.</p>
- <h5 id=appcacheevents><span class=secno>6.9.1.1 </span>Event summary</h5>
+ <h5 id=appcacheevents><span class=secno>6.8.1.1 </span>Event summary</h5>
<p><i>This section is non-normative.</i></p>
@@ -55394,7 +55396,7 @@
<td> The user agent will try fetching the files again momentarily.
</table><div class=impl>
- <h4 id=appcache><span class=secno>6.9.2 </span>Application caches</h4>
+ <h4 id=appcache><span class=secno>6.8.2 </span>Application caches</h4>
<p>An <dfn id=application-cache>application cache</dfn> is a set of cached resources
consisting of:</p>
@@ -55554,10 +55556,10 @@
- <h4 id=manifests><span class=secno>6.9.3 </span>The cache manifest syntax</h4>
+ <h4 id=manifests><span class=secno>6.8.3 </span>The cache manifest syntax</h4>
- <h5 id=a-sample-manifest><span class=secno>6.9.3.1 </span>A sample manifest</h5>
+ <h5 id=a-sample-manifest><span class=secno>6.8.3.1 </span>A sample manifest</h5>
<p><i>This section is non-normative.</i></p>
@@ -55627,7 +55629,7 @@
*</pre>
- <h5 id=writing-cache-manifests><span class=secno>6.9.3.2 </span>Writing cache manifests</h5>
+ <h5 id=writing-cache-manifests><span class=secno>6.8.3.2 </span>Writing cache manifests</h5>
<p>Manifests must be served using the
<code><a href=#text/cache-manifest>text/cache-manifest</a></code> <a href=#mime-type>MIME type</a>. All
@@ -55788,7 +55790,7 @@
<div class=impl>
- <h5 id=parsing-cache-manifests><span class=secno>6.9.3.3 </span>Parsing cache manifests</h5>
+ <h5 id=parsing-cache-manifests><span class=secno>6.8.3.3 </span>Parsing cache manifests</h5>
<p>When a user agent is to <dfn id=parse-a-manifest>parse a manifest</dfn>, it means
that the user agent must run the following steps:</p>
@@ -56058,7 +56060,7 @@
</div>
- <h4 id=downloading-or-updating-an-application-cache><span class=secno>6.9.4 </span>Downloading or updating an application cache</h4>
+ <h4 id=downloading-or-updating-an-application-cache><span class=secno>6.8.4 </span>Downloading or updating an application cache</h4>
<p>When the user agent is required (by other parts of this
specification) to start the <dfn id=application-cache-download-process>application cache download
@@ -56794,7 +56796,7 @@
- <h4 id=the-application-cache-selection-algorithm><span class=secno>6.9.5 </span>The application cache selection algorithm</h4>
+ <h4 id=the-application-cache-selection-algorithm><span class=secno>6.8.5 </span>The application cache selection algorithm</h4>
<p>When the <dfn id=concept-appcache-init title=concept-appcache-init>application cache
selection algorithm</dfn> algorithm is invoked with a
@@ -56881,7 +56883,7 @@
</dd>
- </dl><h4 id=changesToNetworkingModel><span class=secno>6.9.6 </span>Changes to the networking model</h4>
+ </dl><h4 id=changesToNetworkingModel><span class=secno>6.8.6 </span>Changes to the networking model</h4>
<p>When a <a href=#cache-host>cache host</a> is associated with an
<a href=#application-cache>application cache</a> whose <a href=#concept-appcache-completeness title=concept-appcache-completeness>completeness flag</a> is
@@ -56948,7 +56950,7 @@
</div>
- <h4 id=expiring-application-caches><span class=secno>6.9.7 </span>Expiring application caches</h4>
+ <h4 id=expiring-application-caches><span class=secno>6.8.7 </span>Expiring application caches</h4>
<p>As a general rule, user agents should not expire application
caches, except on request from the user, or after having been left
@@ -56969,7 +56971,7 @@
- <h4 id=application-cache-api><span class=secno>6.9.8 </span>Application cache API</h4>
+ <h4 id=application-cache-api><span class=secno>6.8.8 </span>Application cache API</h4>
<pre class=idl>interface <dfn id=applicationcache>ApplicationCache</dfn> {
@@ -57185,7 +57187,7 @@
</table></div>
- <h4 id=browser-state><span class=secno>6.9.9 </span>Browser state</h4>
+ <h4 id=browser-state><span class=secno>6.8.9 </span>Browser state</h4>
<dl class=domintro><dt><var title="">window</var> . <code title=dom-navigator><a href=#dom-navigator>navigator</a></code> . <code title=dom-navigator-onLine><a href=#dom-navigator-online>onLine</a></code></dt>
@@ -57228,9 +57230,9 @@
- <h3 id=history><span class=secno>6.10 </span>Session history and navigation</h3>
+ <h3 id=history><span class=secno>6.9 </span>Session history and navigation</h3>
- <h4 id=the-session-history-of-browsing-contexts><span class=secno>6.10.1 </span>The session history of browsing contexts</h4>
+ <h4 id=the-session-history-of-browsing-contexts><span class=secno>6.9.1 </span>The session history of browsing contexts</h4>
<p>The sequence of <code>Document</code>s in a <a href=#browsing-context>browsing
context</a> is its <dfn id=session-history>session history</dfn>.</p>
@@ -57329,7 +57331,7 @@
</div>
- <h4 id=the-history-interface><span class=secno>6.10.2 </span>The <code><a href=#history-0>History</a></code> interface</h4>
+ <h4 id=the-history-interface><span class=secno>6.9.2 </span>The <code><a href=#history-0>History</a></code> interface</h4>
<pre class=idl>interface <dfn id=history-0>History</dfn> {
readonly attribute long <a href=#dom-history-length title=dom-history-length>length</a>;
@@ -57685,7 +57687,7 @@
- <h4 id=the-location-interface><span class=secno>6.10.3 </span>The <code><a href=#location>Location</a></code> interface</h4>
+ <h4 id=the-location-interface><span class=secno>6.9.3 </span>The <code><a href=#location>Location</a></code> interface</h4>
<p>Each <code>Document</code> object in a <a href=#browsing-context>browsing
context</a>'s session history is associated with a unique
@@ -57893,7 +57895,7 @@
<div class=impl>
- <h5 id=security-3><span class=secno>6.10.3.1 </span>Security</h5>
+ <h5 id=security-3><span class=secno>6.9.3.1 </span>Security</h5>
<p>User agents must raise a <code><a href=#security_err>SECURITY_ERR</a></code> exception whenever
any of the members of a <code><a href=#location>Location</a></code> object are accessed by
@@ -57916,7 +57918,7 @@
<div class=impl>
- <h4 id=history-notes><span class=secno>6.10.4 </span>Implementation notes for session history</h4>
+ <h4 id=history-notes><span class=secno>6.9.4 </span>Implementation notes for session history</h4>
<!-- don't change the ID without updating multiple internal links -->
<p><i>This section is non-normative.</i></p>
@@ -57955,11 +57957,11 @@
</div>
- <h3 id=browsing-the-web><span class=secno>6.11 </span>Browsing the Web</h3>
+ <h3 id=browsing-the-web><span class=secno>6.10 </span>Browsing the Web</h3>
<div class=impl>
- <h4 id=navigating-across-documents><span class=secno>6.11.1 </span>Navigating across documents</h4>
+ <h4 id=navigating-across-documents><span class=secno>6.10.1 </span>Navigating across documents</h4>
<p>Certain actions cause the <a href=#browsing-context>browsing context</a> to
<i><a href=#navigate>navigate</a></i> to a new resource. Navigation always involves
@@ -58400,7 +58402,7 @@
source</a>.</p>
- <h4 id=read-html><span class=secno>6.11.2 </span><dfn title=navigate-html>Page load processing model for HTML files</dfn></h4>
+ <h4 id=read-html><span class=secno>6.10.2 </span><dfn title=navigate-html>Page load processing model for HTML files</dfn></h4>
<p>When an HTML document is to be loaded in a <a href=#browsing-context>browsing
context</a>, the user agent must <a href=#create-a-document-object>create a
@@ -58433,7 +58435,7 @@
- <h4 id=read-xml><span class=secno>6.11.3 </span><dfn title=navigate-xml>Page load processing model for XML files</dfn></h4>
+ <h4 id=read-xml><span class=secno>6.10.3 </span><dfn title=navigate-xml>Page load processing model for XML files</dfn></h4>
<p>When faced with displaying an XML file inline, user agents must
first <a href=#create-a-document-object>create a <code>Document</code> object</a>, following
@@ -58489,7 +58491,7 @@
<code>Document</code>.</p>
- <h4 id=read-text><span class=secno>6.11.4 </span><dfn title=navigate-text>Page load processing model for text files</dfn></h4>
+ <h4 id=read-text><span class=secno>6.10.4 </span><dfn title=navigate-text>Page load processing model for text files</dfn></h4>
<p>When a plain text document is to be loaded in a <a href=#browsing-context>browsing
context</a>, the user agent should <a href=#create-a-document-object>create a
@@ -58532,7 +58534,7 @@
etc.</p>
- <h4 id=read-image><span class=secno>6.11.5 </span><dfn title=navigate-image>Page load processing model for images</dfn></h4>
+ <h4 id=read-image><span class=secno>6.10.5 </span><dfn title=navigate-image>Page load processing model for images</dfn></h4>
<p>When an image resource is to be loaded in a <a href=#browsing-context>browsing
context</a>, the user agent should <a href=#create-a-document-object>create a
@@ -58564,7 +58566,7 @@
a script, to give the document a <code><a href=#the-title-element-0>title</a></code>, etc.</p>
- <h4 id=read-plugin><span class=secno>6.11.6 </span><dfn title=navigate-plugin>Page load processing model for content that uses plugins</dfn></h4>
+ <h4 id=read-plugin><span class=secno>6.10.6 </span><dfn title=navigate-plugin>Page load processing model for content that uses plugins</dfn></h4>
<p>When a resource that requires an external resource to be rendered
is to be loaded in a <a href=#browsing-context>browsing context</a>, the user agent
@@ -58602,7 +58604,7 @@
synthesized <code><a href=#the-embed-element>embed</a></code> element will <a href=#sandboxPluginEmbed>fail to render the content</a>.</p>
- <h4 id=read-ua-inline><span class=secno>6.11.7 </span><dfn title=navigate-ua-inline>Page load processing model for inline content that doesn't have a DOM</dfn></h4>
+ <h4 id=read-ua-inline><span class=secno>6.10.7 </span><dfn title=navigate-ua-inline>Page load processing model for inline content that doesn't have a DOM</dfn></h4>
<p>When the user agent is to display a user agent page inline in a
<a href=#browsing-context>browsing context</a>, the user agent should <a href=#create-a-document-object>create a
@@ -58629,7 +58631,7 @@
- <h4 id=scroll-to-fragid><span class=secno>6.11.8 </span><dfn title=navigate-fragid>Navigating to a fragment identifier</dfn></h4>
+ <h4 id=scroll-to-fragid><span class=secno>6.10.8 </span><dfn title=navigate-fragid>Navigating to a fragment identifier</dfn></h4>
<p>When a user agent is supposed to navigate to a fragment
identifier, then the user agent must <a href=#queue-a-task>queue a task</a> to
@@ -58724,7 +58726,7 @@
- <h4 id=history-traversal><span class=secno>6.11.9 </span>History traversal</h4> <!-- session history -->
+ <h4 id=history-traversal><span class=secno>6.10.9 </span>History traversal</h4> <!-- session history -->
<div class=impl>
@@ -58896,7 +58898,7 @@
<a href=#dom-manipulation-task-source>DOM manipulation task source</a>.</p>
- <h5 id=event-definitions><span class=secno>6.11.9.1 </span>Event definitions</h5>
+ <h5 id=event-definitions><span class=secno>6.10.9.1 </span>Event definitions</h5>
</div>
@@ -58980,7 +58982,7 @@
- <h4 id=unloading-documents><span class=secno>6.11.10 </span>Unloading documents</h4>
+ <h4 id=unloading-documents><span class=secno>6.10.10 </span>Unloading documents</h4>
<div class=impl>
@@ -59122,7 +59124,7 @@
<code>Document</code>'s <a href=#browsing-context>browsing context</a> must <a href=#discard-a-document title="discard a document">discard the
<code>Document</code></a>.</li>
- </ol><h5 id=event-definition><span class=secno>6.11.10.1 </span>Event definition</h5>
+ </ol><h5 id=event-definition><span class=secno>6.10.10.1 </span>Event definition</h5>
</div>
@@ -59156,7 +59158,7 @@
<div class=impl>
- <h4 id=aborting-a-document-load><span class=secno>6.11.11 </span>Aborting a document load</h4>
+ <h4 id=aborting-a-document-load><span class=secno>6.10.11 </span>Aborting a document load</h4>
<p>If the user cancels any instance of the <a href=#fetch title=fetch>fetching algorithm</a> in the context of a
<code>Document</code> in a <a href=#browsing-context>browsing context</a>, then, if
Modified: index
===================================================================
--- index 2010-02-05 23:16:41 UTC (rev 4666)
+++ index 2010-02-05 23:25:48 UTC (rev 4667)
@@ -702,97 +702,97 @@
<li><a href=#security-1><span class=secno>6.1.4 </span>Security</a></li>
<li><a href=#groupings-of-browsing-contexts><span class=secno>6.1.5 </span>Groupings of browsing contexts</a></li>
<li><a href=#browsing-context-names><span class=secno>6.1.6 </span>Browsing context names</a></ol></li>
- <li><a href=#the-windowproxy-object><span class=secno>6.2 </span>The <code>WindowProxy</code> object</a></li>
- <li><a href=#the-window-object><span class=secno>6.3 </span>The <code>Window</code> object</a>
+ <li><a href=#the-window-object><span class=secno>6.2 </span>The <code>Window</code> object</a>
<ol>
- <li><a href=#security-2><span class=secno>6.3.1 </span>Security</a></li>
- <li><a href=#apis-for-creating-and-navigating-browsing-contexts-by-name><span class=secno>6.3.2 </span>APIs for creating and navigating browsing contexts by name</a></li>
- <li><a href=#accessing-other-browsing-contexts><span class=secno>6.3.3 </span>Accessing other browsing contexts</a></li>
- <li><a href=#named-access-on-the-window-object><span class=secno>6.3.4 </span>Named access on the <code>Window</code> object</a></li>
- <li><a href=#garbage-collection-and-browsing-contexts><span class=secno>6.3.5 </span>Garbage collection and browsing contexts</a></li>
- <li><a href=#browser-interface-elements><span class=secno>6.3.6 </span>Browser interface elements</a></ol></li>
- <li><a href=#origin-0><span class=secno>6.4 </span>Origin</a>
+ <li><a href=#security-2><span class=secno>6.2.1 </span>Security</a></li>
+ <li><a href=#apis-for-creating-and-navigating-browsing-contexts-by-name><span class=secno>6.2.2 </span>APIs for creating and navigating browsing contexts by name</a></li>
+ <li><a href=#accessing-other-browsing-contexts><span class=secno>6.2.3 </span>Accessing other browsing contexts</a></li>
+ <li><a href=#named-access-on-the-window-object><span class=secno>6.2.4 </span>Named access on the <code>Window</code> object</a></li>
+ <li><a href=#garbage-collection-and-browsing-contexts><span class=secno>6.2.5 </span>Garbage collection and browsing contexts</a></li>
+ <li><a href=#browser-interface-elements><span class=secno>6.2.6 </span>Browser interface elements</a></li>
+ <li><a href=#the-windowproxy-object><span class=secno>6.2.7 </span>The <code>WindowProxy</code> object</a></ol></li>
+ <li><a href=#origin-0><span class=secno>6.3 </span>Origin</a>
<ol>
- <li><a href=#relaxing-the-same-origin-restriction><span class=secno>6.4.1 </span>Relaxing the same-origin restriction</a></ol></li>
- <li><a href=#scripting><span class=secno>6.5 </span>Scripting</a>
+ <li><a href=#relaxing-the-same-origin-restriction><span class=secno>6.3.1 </span>Relaxing the same-origin restriction</a></ol></li>
+ <li><a href=#scripting><span class=secno>6.4 </span>Scripting</a>
<ol>
- <li><a href=#introduction-2><span class=secno>6.5.1 </span>Introduction</a></li>
- <li><a href=#enabling-and-disabling-scripting><span class=secno>6.5.2 </span>Enabling and disabling scripting</a></li>
- <li><a href=#processing-model-1><span class=secno>6.5.3 </span>Processing model</a>
+ <li><a href=#introduction-2><span class=secno>6.4.1 </span>Introduction</a></li>
+ <li><a href=#enabling-and-disabling-scripting><span class=secno>6.4.2 </span>Enabling and disabling scripting</a></li>
+ <li><a href=#processing-model-1><span class=secno>6.4.3 </span>Processing model</a>
<ol>
- <li><a href=#definitions-0><span class=secno>6.5.3.1 </span>Definitions</a></li>
- <li><a href=#calling-scripts><span class=secno>6.5.3.2 </span>Calling scripts</a></li>
- <li><a href=#creating-scripts><span class=secno>6.5.3.3 </span>Creating scripts</a></li>
- <li><a href=#killing-scripts><span class=secno>6.5.3.4 </span>Killing scripts</a></ol></li>
- <li><a href=#event-loops><span class=secno>6.5.4 </span>Event loops</a>
+ <li><a href=#definitions-0><span class=secno>6.4.3.1 </span>Definitions</a></li>
+ <li><a href=#calling-scripts><span class=secno>6.4.3.2 </span>Calling scripts</a></li>
+ <li><a href=#creating-scripts><span class=secno>6.4.3.3 </span>Creating scripts</a></li>
+ <li><a href=#killing-scripts><span class=secno>6.4.3.4 </span>Killing scripts</a></ol></li>
+ <li><a href=#event-loops><span class=secno>6.4.4 </span>Event loops</a>
<ol>
- <li><a href=#definitions-1><span class=secno>6.5.4.1 </span>Definitions</a></li>
- <li><a href=#processing-model-2><span class=secno>6.5.4.2 </span>Processing model</a></li>
- <li><a href=#generic-task-sources><span class=secno>6.5.4.3 </span>Generic task sources</a></ol></li>
- <li><a href=#javascript-protocol><span class=secno>6.5.5 </span>The <code title="">javascript:</code> protocol</a></li>
- <li><a href=#events><span class=secno>6.5.6 </span>Events</a>
+ <li><a href=#definitions-1><span class=secno>6.4.4.1 </span>Definitions</a></li>
+ <li><a href=#processing-model-2><span class=secno>6.4.4.2 </span>Processing model</a></li>
+ <li><a href=#generic-task-sources><span class=secno>6.4.4.3 </span>Generic task sources</a></ol></li>
+ <li><a href=#javascript-protocol><span class=secno>6.4.5 </span>The <code title="">javascript:</code> protocol</a></li>
+ <li><a href=#events><span class=secno>6.4.6 </span>Events</a>
<ol>
- <li><a href=#event-handler-attributes><span class=secno>6.5.6.1 </span>Event handlers</a></li>
- <li><a href=#event-handlers-on-elements,-document-objects,-and-window-objects><span class=secno>6.5.6.2 </span>Event handlers on elements, <code>Document</code> objects, and <code>Window</code> objects</a></li>
- <li><a href=#event-firing><span class=secno>6.5.6.3 </span>Event firing</a></li>
- <li><a href=#events-and-the-window-object><span class=secno>6.5.6.4 </span>Events and the <code>Window</code> object</a></li>
- <li><a href=#runtime-script-errors><span class=secno>6.5.6.5 </span>Runtime script errors</a></ol></ol></li>
- <li><a href=#timers><span class=secno>6.6 </span>Timers</a></li>
- <li><a href=#user-prompts><span class=secno>6.7 </span>User prompts</a>
+ <li><a href=#event-handler-attributes><span class=secno>6.4.6.1 </span>Event handlers</a></li>
+ <li><a href=#event-handlers-on-elements,-document-objects,-and-window-objects><span class=secno>6.4.6.2 </span>Event handlers on elements, <code>Document</code> objects, and <code>Window</code> objects</a></li>
+ <li><a href=#event-firing><span class=secno>6.4.6.3 </span>Event firing</a></li>
+ <li><a href=#events-and-the-window-object><span class=secno>6.4.6.4 </span>Events and the <code>Window</code> object</a></li>
+ <li><a href=#runtime-script-errors><span class=secno>6.4.6.5 </span>Runtime script errors</a></ol></ol></li>
+ <li><a href=#timers><span class=secno>6.5 </span>Timers</a></li>
+ <li><a href=#user-prompts><span class=secno>6.6 </span>User prompts</a>
<ol>
- <li><a href=#simple-dialogs><span class=secno>6.7.1 </span>Simple dialogs</a></li>
- <li><a href=#printing><span class=secno>6.7.2 </span>Printing</a></li>
- <li><a href=#dialogs-implemented-using-separate-documents><span class=secno>6.7.3 </span>Dialogs implemented using separate documents</a></ol></li>
- <li><a href=#system-state-and-capabilities><span class=secno>6.8 </span>System state and capabilities</a>
+ <li><a href=#simple-dialogs><span class=secno>6.6.1 </span>Simple dialogs</a></li>
+ <li><a href=#printing><span class=secno>6.6.2 </span>Printing</a></li>
+ <li><a href=#dialogs-implemented-using-separate-documents><span class=secno>6.6.3 </span>Dialogs implemented using separate documents</a></ol></li>
+ <li><a href=#system-state-and-capabilities><span class=secno>6.7 </span>System state and capabilities</a>
<ol>
- <li><a href=#client-identification><span class=secno>6.8.1 </span>Client identification</a></li>
- <li><a href=#custom-handlers><span class=secno>6.8.2 </span>Custom scheme and content handlers</a>
+ <li><a href=#client-identification><span class=secno>6.7.1 </span>Client identification</a></li>
+ <li><a href=#custom-handlers><span class=secno>6.7.2 </span>Custom scheme and content handlers</a>
<ol>
- <li><a href=#security-and-privacy><span class=secno>6.8.2.1 </span>Security and privacy</a></li>
- <li><a href=#sample-handler-impl><span class=secno>6.8.2.2 </span>Sample user interface</a></ol></li>
- <li><a href=#manually-releasing-the-storage-mutex><span class=secno>6.8.3 </span>Manually releasing the storage mutex</a></ol></li>
- <li><a href=#offline><span class=secno>6.9 </span>Offline Web applications</a>
+ <li><a href=#security-and-privacy><span class=secno>6.7.2.1 </span>Security and privacy</a></li>
+ <li><a href=#sample-handler-impl><span class=secno>6.7.2.2 </span>Sample user interface</a></ol></li>
+ <li><a href=#manually-releasing-the-storage-mutex><span class=secno>6.7.3 </span>Manually releasing the storage mutex</a></ol></li>
+ <li><a href=#offline><span class=secno>6.8 </span>Offline Web applications</a>
<ol>
- <li><a href=#introduction-3><span class=secno>6.9.1 </span>Introduction</a>
+ <li><a href=#introduction-3><span class=secno>6.8.1 </span>Introduction</a>
<ol>
- <li><a href=#appcacheevents><span class=secno>6.9.1.1 </span>Event summary</a></ol></li>
- <li><a href=#appcache><span class=secno>6.9.2 </span>Application caches</a></li>
- <li><a href=#manifests><span class=secno>6.9.3 </span>The cache manifest syntax</a>
+ <li><a href=#appcacheevents><span class=secno>6.8.1.1 </span>Event summary</a></ol></li>
+ <li><a href=#appcache><span class=secno>6.8.2 </span>Application caches</a></li>
+ <li><a href=#manifests><span class=secno>6.8.3 </span>The cache manifest syntax</a>
<ol>
- <li><a href=#a-sample-manifest><span class=secno>6.9.3.1 </span>A sample manifest</a></li>
- <li><a href=#writing-cache-manifests><span class=secno>6.9.3.2 </span>Writing cache manifests</a></li>
- <li><a href=#parsing-cache-manifests><span class=secno>6.9.3.3 </span>Parsing cache manifests</a></ol></li>
- <li><a href=#downloading-or-updating-an-application-cache><span class=secno>6.9.4 </span>Downloading or updating an application cache</a></li>
- <li><a href=#the-application-cache-selection-algorithm><span class=secno>6.9.5 </span>The application cache selection algorithm</a></li>
- <li><a href=#changesToNetworkingModel><span class=secno>6.9.6 </span>Changes to the networking model</a></li>
- <li><a href=#expiring-application-caches><span class=secno>6.9.7 </span>Expiring application caches</a></li>
- <li><a href=#application-cache-api><span class=secno>6.9.8 </span>Application cache API</a></li>
- <li><a href=#browser-state><span class=secno>6.9.9 </span>Browser state</a></ol></li>
- <li><a href=#history><span class=secno>6.10 </span>Session history and navigation</a>
+ <li><a href=#a-sample-manifest><span class=secno>6.8.3.1 </span>A sample manifest</a></li>
+ <li><a href=#writing-cache-manifests><span class=secno>6.8.3.2 </span>Writing cache manifests</a></li>
+ <li><a href=#parsing-cache-manifests><span class=secno>6.8.3.3 </span>Parsing cache manifests</a></ol></li>
+ <li><a href=#downloading-or-updating-an-application-cache><span class=secno>6.8.4 </span>Downloading or updating an application cache</a></li>
+ <li><a href=#the-application-cache-selection-algorithm><span class=secno>6.8.5 </span>The application cache selection algorithm</a></li>
+ <li><a href=#changesToNetworkingModel><span class=secno>6.8.6 </span>Changes to the networking model</a></li>
+ <li><a href=#expiring-application-caches><span class=secno>6.8.7 </span>Expiring application caches</a></li>
+ <li><a href=#application-cache-api><span class=secno>6.8.8 </span>Application cache API</a></li>
+ <li><a href=#browser-state><span class=secno>6.8.9 </span>Browser state</a></ol></li>
+ <li><a href=#history><span class=secno>6.9 </span>Session history and navigation</a>
<ol>
- <li><a href=#the-session-history-of-browsing-contexts><span class=secno>6.10.1 </span>The session history of browsing contexts</a></li>
- <li><a href=#the-history-interface><span class=secno>6.10.2 </span>The <code>History</code> interface</a></li>
- <li><a href=#the-location-interface><span class=secno>6.10.3 </span>The <code>Location</code> interface</a>
+ <li><a href=#the-session-history-of-browsing-contexts><span class=secno>6.9.1 </span>The session history of browsing contexts</a></li>
+ <li><a href=#the-history-interface><span class=secno>6.9.2 </span>The <code>History</code> interface</a></li>
+ <li><a href=#the-location-interface><span class=secno>6.9.3 </span>The <code>Location</code> interface</a>
<ol>
- <li><a href=#security-3><span class=secno>6.10.3.1 </span>Security</a></ol></li>
- <li><a href=#history-notes><span class=secno>6.10.4 </span>Implementation notes for session history</a></ol></li>
- <li><a href=#browsing-the-web><span class=secno>6.11 </span>Browsing the Web</a>
+ <li><a href=#security-3><span class=secno>6.9.3.1 </span>Security</a></ol></li>
+ <li><a href=#history-notes><span class=secno>6.9.4 </span>Implementation notes for session history</a></ol></li>
+ <li><a href=#browsing-the-web><span class=secno>6.10 </span>Browsing the Web</a>
<ol>
- <li><a href=#navigating-across-documents><span class=secno>6.11.1 </span>Navigating across documents</a></li>
- <li><a href=#read-html><span class=secno>6.11.2 </span>Page load processing model for HTML files</a></li>
- <li><a href=#read-xml><span class=secno>6.11.3 </span>Page load processing model for XML files</a></li>
- <li><a href=#read-text><span class=secno>6.11.4 </span>Page load processing model for text files</a></li>
- <li><a href=#read-image><span class=secno>6.11.5 </span>Page load processing model for images</a></li>
- <li><a href=#read-plugin><span class=secno>6.11.6 </span>Page load processing model for content that uses plugins</a></li>
- <li><a href=#read-ua-inline><span class=secno>6.11.7 </span>Page load processing model for inline content that doesn't have a DOM</a></li>
- <li><a href=#scroll-to-fragid><span class=secno>6.11.8 </span>Navigating to a fragment identifier</a></li>
- <li><a href=#history-traversal><span class=secno>6.11.9 </span>History traversal</a>
+ <li><a href=#navigating-across-documents><span class=secno>6.10.1 </span>Navigating across documents</a></li>
+ <li><a href=#read-html><span class=secno>6.10.2 </span>Page load processing model for HTML files</a></li>
+ <li><a href=#read-xml><span class=secno>6.10.3 </span>Page load processing model for XML files</a></li>
+ <li><a href=#read-text><span class=secno>6.10.4 </span>Page load processing model for text files</a></li>
+ <li><a href=#read-image><span class=secno>6.10.5 </span>Page load processing model for images</a></li>
+ <li><a href=#read-plugin><span class=secno>6.10.6 </span>Page load processing model for content that uses plugins</a></li>
+ <li><a href=#read-ua-inline><span class=secno>6.10.7 </span>Page load processing model for inline content that doesn't have a DOM</a></li>
+ <li><a href=#scroll-to-fragid><span class=secno>6.10.8 </span>Navigating to a fragment identifier</a></li>
+ <li><a href=#history-traversal><span class=secno>6.10.9 </span>History traversal</a>
<ol>
- <li><a href=#event-definitions><span class=secno>6.11.9.1 </span>Event definitions</a></ol></li>
- <li><a href=#unloading-documents><span class=secno>6.11.10 </span>Unloading documents</a>
+ <li><a href=#event-definitions><span class=secno>6.10.9.1 </span>Event definitions</a></ol></li>
+ <li><a href=#unloading-documents><span class=secno>6.10.10 </span>Unloading documents</a>
<ol>
- <li><a href=#event-definition><span class=secno>6.11.10.1 </span>Event definition</a></ol></li>
- <li><a href=#aborting-a-document-load><span class=secno>6.11.11 </span>Aborting a document load</a></ol></ol></li>
+ <li><a href=#event-definition><span class=secno>6.10.10.1 </span>Event definition</a></ol></li>
+ <li><a href=#aborting-a-document-load><span class=secno>6.10.11 </span>Aborting a document load</a></ol></ol></li>
<li><a href=#editing><span class=secno>7 </span>User Interaction</a>
<ol>
<li><a href=#the-hidden-attribute><span class=secno>7.1 </span>The <code>hidden</code> attribute</a></li>
@@ -51578,46 +51578,10 @@
</ol></div>
- <div class=impl>
- <h3 id=the-windowproxy-object><span class=secno>6.2 </span>The <code><a href=#windowproxy>WindowProxy</a></code> object</h3>
+ <h3 id=the-window-object><span class=secno>6.2 </span>The <code><a href=#window>Window</a></code> object</h3>
- <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 all operations that would be performed on it must be
- performed 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>
-
- <p class=note>The <code><a href=#windowproxy>WindowProxy</a></code> object allows scripts
- to act as if each <a href=#browsing-context>browsing context</a> had a single
- <code><a href=#window>Window</a></code> object, while still keeping separate
- <code><a href=#window>Window</a></code> objects for each <code>Document</code>.</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 object. 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>
-
-
-
- <h3 id=the-window-object><span class=secno>6.3 </span>The <code><a href=#window>Window</a></code> object</h3>
-
<pre class=idl>[OverrideBuiltins, ReplaceableNamedProperties] <!-- XXX http://www.w3.org/Bugs/Public/show_bug.cgi?id=8241 -->
interface <dfn id=window>Window</dfn> {
// the current browsing context
@@ -51766,7 +51730,7 @@
<div class=impl>
- <h4 id=security-2><span class=secno>6.3.1 </span>Security</h4>
+ <h4 id=security-2><span class=secno>6.2.1 </span>Security</h4>
<p>User agents must raise a <code><a href=#security_err>SECURITY_ERR</a></code> exception
whenever any of the members of a <code><a href=#window>Window</a></code> object are
@@ -51817,7 +51781,7 @@
- <h4 id=apis-for-creating-and-navigating-browsing-contexts-by-name><span class=secno>6.3.2 </span>APIs for creating and navigating browsing contexts by name</h4>
+ <h4 id=apis-for-creating-and-navigating-browsing-contexts-by-name><span class=secno>6.2.2 </span>APIs for creating and navigating browsing contexts by name</h4>
<dl class=domintro><dt><var title="">window</var> = <var title="">window</var> . <code title=dom-open><a href=#dom-open>open</a></code>( [ <var title="">url</var> [, <var title="">target</var> [, <var title="">features</var> [, <var title="">replace</var> ] ] ] ] )</dt>
@@ -51941,7 +51905,7 @@
</div>
- <h4 id=accessing-other-browsing-contexts><span class=secno>6.3.3 </span>Accessing other browsing contexts</h4>
+ <h4 id=accessing-other-browsing-contexts><span class=secno>6.2.3 </span>Accessing other browsing contexts</h4>
<dl class=domintro><dt><var title="">window</var> . <code title=dom-length><a href=#dom-length>length</a></code></dt>
@@ -51996,7 +51960,7 @@
- <h4 id=named-access-on-the-window-object><span class=secno>6.3.4 </span>Named access on the <code><a href=#window>Window</a></code> object</h4>
+ <h4 id=named-access-on-the-window-object><span class=secno>6.2.4 </span>Named access on the <code><a href=#window>Window</a></code> object</h4>
<dl class=domintro><dt><var title="">window</var>[<var title="">name</var>]</dt>
@@ -52080,7 +52044,7 @@
<div class=impl>
- <h4 id=garbage-collection-and-browsing-contexts><span class=secno>6.3.5 </span>Garbage collection and browsing contexts</h4>
+ <h4 id=garbage-collection-and-browsing-contexts><span class=secno>6.2.5 </span>Garbage collection and browsing contexts</h4>
<p>A <a href=#browsing-context>browsing context</a> has a strong reference to each of
its <code>Document</code>s and its <code><a href=#windowproxy>WindowProxy</a></code> object,
@@ -52131,7 +52095,7 @@
- <h4 id=browser-interface-elements><span class=secno>6.3.6 </span>Browser interface elements</h4>
+ <h4 id=browser-interface-elements><span class=secno>6.2.6 </span>Browser interface elements</h4>
<p>To allow Web pages to integrate with Web browsers, certain Web
browser interface elements are exposed in a limited way to scripts
@@ -52266,7 +52230,45 @@
<div class=impl>
- <h3 id=origin-0><span class=secno>6.4 </span>Origin</h3>
+ <h4 id=the-windowproxy-object><span class=secno>6.2.7 </span>The <code><a href=#windowproxy>WindowProxy</a></code> object</h4>
+
+
+ <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 all operations that would be performed on it must be
+ performed 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>
+
+ <p class=note>The <code><a href=#windowproxy>WindowProxy</a></code> object allows scripts
+ to act as if each <a href=#browsing-context>browsing context</a> had a single
+ <code><a href=#window>Window</a></code> object, while still keeping separate
+ <code><a href=#window>Window</a></code> objects for each <code>Document</code>.</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 object. 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>
+
+
+
+ <div class=impl>
+
+ <h3 id=origin-0><span class=secno>6.3 </span>Origin</h3>
<!-- Hallowed are the Ori -->
<p>The <dfn id=origin>origin</dfn> of a resource and the <dfn id=effective-script-origin>effective script
@@ -52621,7 +52623,7 @@
</ol></div>
- <h4 id=relaxing-the-same-origin-restriction><span class=secno>6.4.1 </span>Relaxing the same-origin restriction</h4>
+ <h4 id=relaxing-the-same-origin-restriction><span class=secno>6.3.1 </span>Relaxing the same-origin restriction</h4>
<dl class=domintro><dt><var title="">document</var> . <code title=dom-document-domain><a href=#dom-document-domain>domain</a></code> [ = <var title="">domain</var> ]</dt>
@@ -52760,9 +52762,9 @@
- <h3 id=scripting><span class=secno>6.5 </span>Scripting</h3>
+ <h3 id=scripting><span class=secno>6.4 </span>Scripting</h3>
- <h4 id=introduction-2><span class=secno>6.5.1 </span>Introduction</h4>
+ <h4 id=introduction-2><span class=secno>6.4.1 </span>Introduction</h4>
<p>Various mechanisms can cause author-provided executable code to
run in the context of a document. These mechanisms include, but are
@@ -52784,7 +52786,7 @@
</ul><div class=impl>
- <h4 id=enabling-and-disabling-scripting><span class=secno>6.5.2 </span>Enabling and disabling scripting</h4>
+ <h4 id=enabling-and-disabling-scripting><span class=secno>6.4.2 </span>Enabling and disabling scripting</h4>
<p><dfn id=concept-bc-script title=concept-bc-script>Scripting is enabled</dfn> in a
<em><a href=#browsing-context>browsing context</a></em> when all of the
@@ -52822,9 +52824,9 @@
<div class=impl>
<!-- SCRIPT EXEC (marks areas related to creation of scripts) -->
- <h4 id=processing-model-1><span class=secno>6.5.3 </span>Processing model</h4>
+ <h4 id=processing-model-1><span class=secno>6.4.3 </span>Processing model</h4>
- <h5 id=definitions-0><span class=secno>6.5.3.1 </span>Definitions</h5>
+ <h5 id=definitions-0><span class=secno>6.4.3.1 </span>Definitions</h5>
<p>A <dfn id=concept-script title=concept-script>script</dfn> has:</p>
@@ -52940,7 +52942,7 @@
<div class=impl>
- <h5 id=calling-scripts><span class=secno>6.5.3.2 </span>Calling scripts</h5>
+ <h5 id=calling-scripts><span class=secno>6.4.3.2 </span>Calling scripts</h5>
<p>When a user agent is to <dfn id=jump-to-a-code-entry-point>jump to a code entry-point</dfn> for
a <a href=#concept-script title=concept-script>script</a>, for example to invoke
@@ -52968,7 +52970,7 @@
<div class=impl>
- <h5 id=creating-scripts><span class=secno>6.5.3.3 </span>Creating scripts</h5>
+ <h5 id=creating-scripts><span class=secno>6.4.3.3 </span>Creating scripts</h5>
<p>When the specification says that a <a href=#concept-script title=concept-script>script</a> is to be <dfn id=create-a-script title="create a
script">created</dfn>, given some script source, its scripting
@@ -53040,7 +53042,7 @@
<div class=impl>
- <h5 id=killing-scripts><span class=secno>6.5.3.4 </span>Killing scripts</h5>
+ <h5 id=killing-scripts><span class=secno>6.4.3.4 </span>Killing scripts</h5>
<p>User agents may impose resource limitations on scripts, for
example CPU quotas, memory limits, total execution time limits, or
@@ -53074,9 +53076,9 @@
<div class=impl>
- <h4 id=event-loops><span class=secno>6.5.4 </span>Event loops</h4>
+ <h4 id=event-loops><span class=secno>6.4.4 </span>Event loops</h4>
- <h5 id=definitions-1><span class=secno>6.5.4.1 </span>Definitions</h5>
+ <h5 id=definitions-1><span class=secno>6.4.4.1 </span>Definitions</h5>
<p>To coordinate events, user interaction, scripts, rendering,
networking, and so forth, user agents must use <dfn id=event-loop title="event
@@ -53182,7 +53184,7 @@
release the <a href=#storage-mutex>storage mutex</a>.</p>
- <h5 id=processing-model-2><span class=secno>6.5.4.2 </span>Processing model</h5>
+ <h5 id=processing-model-2><span class=secno>6.4.4.2 </span>Processing model</h5>
<p>An <a href=#event-loop>event loop</a> must continually run through the
following steps for as long as it exists:</p>
@@ -53266,7 +53268,7 @@
<div class=impl>
- <h5 id=generic-task-sources><span class=secno>6.5.4.3 </span>Generic task sources</h5>
+ <h5 id=generic-task-sources><span class=secno>6.4.4.3 </span>Generic task sources</h5>
<p>The following <a href=#task-source title="task source">task sources</a> are
used by a number of mostly unrelated features in this and other
@@ -53331,7 +53333,7 @@
<div class=impl>
<!-- SCRIPT EXEC -->
- <h4 id=javascript-protocol><span class=secno>6.5.5 </span><dfn title="javascript protocol">The <code title="">javascript:</code> protocol</dfn></h4>
+ <h4 id=javascript-protocol><span class=secno>6.4.5 </span><dfn title="javascript protocol">The <code title="">javascript:</code> protocol</dfn></h4>
<p>When a <a href=#url>URL</a> using the <code title="">javascript:</code> protocol is <dfn id=concept-js-deref title=concept-js-deref>dereferenced</dfn>, the user agent must run
the following steps:</p>
@@ -53450,11 +53452,11 @@
- <h4 id=events><span class=secno>6.5.6 </span>Events</h4>
+ <h4 id=events><span class=secno>6.4.6 </span>Events</h4>
<div class=impl>
- <h5 id=event-handler-attributes><span class=secno>6.5.6.1 </span>Event handlers</h5>
+ <h5 id=event-handler-attributes><span class=secno>6.4.6.1 </span>Event handlers</h5>
</div>
@@ -53706,7 +53708,7 @@
<div class=impl>
- <h5 id=event-handlers-on-elements,-document-objects,-and-window-objects><span class=secno>6.5.6.2 </span>Event handlers on elements, <code>Document</code> objects, and <code><a href=#window>Window</a></code> objects</h5>
+ <h5 id=event-handlers-on-elements,-document-objects,-and-window-objects><span class=secno>6.4.6.2 </span>Event handlers on elements, <code>Document</code> objects, and <code><a href=#window>Window</a></code> objects</h5>
<p>The following are the <a href=#event-handlers>event handlers</a> (and their
corresponding <a href=#event-handler-event-type title="event handler event type">event handler
@@ -53820,7 +53822,7 @@
<div class=impl>
- <h5 id=event-firing><span class=secno>6.5.6.3 </span>Event firing</h5>
+ <h5 id=event-firing><span class=secno>6.4.6.3 </span>Event firing</h5>
<p>Certain operations and methods are defined as firing events on
elements. For example, the <code title=dom-click><a href=#dom-click>click()</a></code>
@@ -53884,7 +53886,7 @@
<div class=impl>
- <h5 id=events-and-the-window-object><span class=secno>6.5.6.4 </span>Events and the <code><a href=#window>Window</a></code> object</h5>
+ <h5 id=events-and-the-window-object><span class=secno>6.4.6.4 </span>Events and the <code><a href=#window>Window</a></code> object</h5>
<p>When an event is dispatched at a DOM node in a
<code>Document</code> in a <a href=#browsing-context>browsing context</a>, if the
@@ -53907,7 +53909,7 @@
<div class=impl>
- <h5 id=runtime-script-errors><span class=secno>6.5.6.5 </span>Runtime script errors</h5>
+ <h5 id=runtime-script-errors><span class=secno>6.4.6.5 </span>Runtime script errors</h5>
<p><i>This section only applies to user agents that support
scripting in general and JavaScript in particular.</i></p>
@@ -53957,7 +53959,7 @@
</dl></div>
- <h3 id=timers><span class=secno>6.6 </span>Timers</h3>
+ <h3 id=timers><span class=secno>6.5 </span>Timers</h3>
<p>The <code title=dom-windowtimers-setTimeout><a href=#dom-windowtimers-settimeout>setTimeout()</a></code>
and <code title=dom-windowtimers-setInterval><a href=#dom-windowtimers-setinterval>setInterval()</a></code>
@@ -54239,7 +54241,7 @@
- <h3 id=user-prompts><span class=secno>6.7 </span>User prompts</h3>
+ <h3 id=user-prompts><span class=secno>6.6 </span>User prompts</h3>
<!--
v2 ideas:
@@ -54250,7 +54252,7 @@
- with a solution for the mobile space
-->
- <h4 id=simple-dialogs><span class=secno>6.7.1 </span>Simple dialogs</h4>
+ <h4 id=simple-dialogs><span class=secno>6.6.1 </span>Simple dialogs</h4>
<dl class=domintro><dt><var title="">window</var> . <code title=dom-alert><a href=#dom-alert>alert</a></code>(<var title="">message</var>)</dt>
<dd>
@@ -54317,7 +54319,7 @@
</div>
- <h4 id=printing><span class=secno>6.7.2 </span>Printing</h4>
+ <h4 id=printing><span class=secno>6.6.2 </span>Printing</h4>
<dl class=domintro><dt><var title="">window</var> . <code title=dom-print><a href=#dom-print>print</a></code>()</dt>
@@ -54411,7 +54413,7 @@
</ol></div>
- <h4 id=dialogs-implemented-using-separate-documents><span class=secno>6.7.3 </span>Dialogs implemented using separate documents</h4>
+ <h4 id=dialogs-implemented-using-separate-documents><span class=secno>6.6.3 </span>Dialogs implemented using separate documents</h4>
<dl class=domintro><dt><var title="">result</var> = <var title="">window</var> . <code title=dom-showModalDialog><a href=#dom-showmodaldialog>showModalDialog</a></code>(<var title="">url</var> [, <var title="">argument</var>] )</dt>
@@ -54628,7 +54630,7 @@
- <h3 id=system-state-and-capabilities><span class=secno>6.8 </span>System state and capabilities</h3>
+ <h3 id=system-state-and-capabilities><span class=secno>6.7 </span>System state and capabilities</h3>
<div class=impl>
@@ -54693,7 +54695,7 @@
</div>
- <h4 id=client-identification><span class=secno>6.8.1 </span>Client identification</h4>
+ <h4 id=client-identification><span class=secno>6.7.1 </span>Client identification</h4>
<p>In certain cases, despite the best efforts of the entire
industry, Web browsers have bugs and limitations that Web authors
@@ -54763,7 +54765,7 @@
</dl></div>
- <h4 id=custom-handlers><span class=secno>6.8.2 </span>Custom scheme and content handlers</h4>
+ <h4 id=custom-handlers><span class=secno>6.7.2 </span>Custom scheme and content handlers</h4>
<p>The <dfn id=dom-navigator-registerprotocolhandler title=dom-navigator-registerProtocolHandler><code>registerProtocolHandler()</code></dfn>
method allows Web sites to register themselves as possible handlers
@@ -54955,7 +54957,7 @@
<div class=impl>
- <h5 id=security-and-privacy><span class=secno>6.8.2.1 </span>Security and privacy</h5>
+ <h5 id=security-and-privacy><span class=secno>6.7.2.1 </span>Security and privacy</h5>
<p>These mechanisms can introduce a number of concerns, in
particular privacy concerns.</p>
@@ -55039,7 +55041,7 @@
<div class=impl>
- <h5 id=sample-handler-impl><span class=secno>6.8.2.2 </span>Sample user interface</h5>
+ <h5 id=sample-handler-impl><span class=secno>6.7.2.2 </span>Sample user interface</h5>
<p><i>This section is non-normative.</i></p>
@@ -55085,7 +55087,7 @@
- <h4 id=manually-releasing-the-storage-mutex><span class=secno>6.8.3 </span>Manually releasing the storage mutex</h4>
+ <h4 id=manually-releasing-the-storage-mutex><span class=secno>6.7.3 </span>Manually releasing the storage mutex</h4>
<dl class=domintro><dt><var title="">window</var> . <code title=dom-navigator><a href=#dom-navigator>navigator</a></code> . <code title=dom-navigator-yieldForStorageUpdates><a href=#dom-navigator-yieldforstorageupdates>yieldForStorageUpdates</a></code>()</dt>
@@ -55118,7 +55120,7 @@
- <h3 id=offline><span class=secno>6.9 </span>Offline Web applications</h3>
+ <h3 id=offline><span class=secno>6.8 </span>Offline Web applications</h3>
<!-- v2 ideas for appcache:
@@ -55162,7 +55164,7 @@
-->
- <h4 id=introduction-3><span class=secno>6.9.1 </span>Introduction</h4>
+ <h4 id=introduction-3><span class=secno>6.8.1 </span>Introduction</h4>
<p><i>This section is non-normative.</i></p>
@@ -55242,7 +55244,7 @@
applications served over TLS can be made to work offline.</p>
- <h5 id=appcacheevents><span class=secno>6.9.1.1 </span>Event summary</h5>
+ <h5 id=appcacheevents><span class=secno>6.8.1.1 </span>Event summary</h5>
<p><i>This section is non-normative.</i></p>
@@ -55298,7 +55300,7 @@
<td> The user agent will try fetching the files again momentarily.
</table><div class=impl>
- <h4 id=appcache><span class=secno>6.9.2 </span>Application caches</h4>
+ <h4 id=appcache><span class=secno>6.8.2 </span>Application caches</h4>
<p>An <dfn id=application-cache>application cache</dfn> is a set of cached resources
consisting of:</p>
@@ -55464,10 +55466,10 @@
- <h4 id=manifests><span class=secno>6.9.3 </span>The cache manifest syntax</h4>
+ <h4 id=manifests><span class=secno>6.8.3 </span>The cache manifest syntax</h4>
- <h5 id=a-sample-manifest><span class=secno>6.9.3.1 </span>A sample manifest</h5>
+ <h5 id=a-sample-manifest><span class=secno>6.8.3.1 </span>A sample manifest</h5>
<p><i>This section is non-normative.</i></p>
@@ -55537,7 +55539,7 @@
*</pre>
- <h5 id=writing-cache-manifests><span class=secno>6.9.3.2 </span>Writing cache manifests</h5>
+ <h5 id=writing-cache-manifests><span class=secno>6.8.3.2 </span>Writing cache manifests</h5>
<p>Manifests must be served using the
<code><a href=#text/cache-manifest>text/cache-manifest</a></code> <a href=#mime-type>MIME type</a>. All
@@ -55698,7 +55700,7 @@
<div class=impl>
- <h5 id=parsing-cache-manifests><span class=secno>6.9.3.3 </span>Parsing cache manifests</h5>
+ <h5 id=parsing-cache-manifests><span class=secno>6.8.3.3 </span>Parsing cache manifests</h5>
<p>When a user agent is to <dfn id=parse-a-manifest>parse a manifest</dfn>, it means
that the user agent must run the following steps:</p>
@@ -55968,7 +55970,7 @@
</div>
- <h4 id=downloading-or-updating-an-application-cache><span class=secno>6.9.4 </span>Downloading or updating an application cache</h4>
+ <h4 id=downloading-or-updating-an-application-cache><span class=secno>6.8.4 </span>Downloading or updating an application cache</h4>
<p>When the user agent is required (by other parts of this
specification) to start the <dfn id=application-cache-download-process>application cache download
@@ -56704,7 +56706,7 @@
- <h4 id=the-application-cache-selection-algorithm><span class=secno>6.9.5 </span>The application cache selection algorithm</h4>
+ <h4 id=the-application-cache-selection-algorithm><span class=secno>6.8.5 </span>The application cache selection algorithm</h4>
<p>When the <dfn id=concept-appcache-init title=concept-appcache-init>application cache
selection algorithm</dfn> algorithm is invoked with a
@@ -56791,7 +56793,7 @@
</dd>
- </dl><h4 id=changesToNetworkingModel><span class=secno>6.9.6 </span>Changes to the networking model</h4>
+ </dl><h4 id=changesToNetworkingModel><span class=secno>6.8.6 </span>Changes to the networking model</h4>
<p>When a <a href=#cache-host>cache host</a> is associated with an
<a href=#application-cache>application cache</a> whose <a href=#concept-appcache-completeness title=concept-appcache-completeness>completeness flag</a> is
@@ -56858,7 +56860,7 @@
</div>
- <h4 id=expiring-application-caches><span class=secno>6.9.7 </span>Expiring application caches</h4>
+ <h4 id=expiring-application-caches><span class=secno>6.8.7 </span>Expiring application caches</h4>
<p>As a general rule, user agents should not expire application
caches, except on request from the user, or after having been left
@@ -56879,7 +56881,7 @@
- <h4 id=application-cache-api><span class=secno>6.9.8 </span>Application cache API</h4>
+ <h4 id=application-cache-api><span class=secno>6.8.8 </span>Application cache API</h4>
<pre class=idl>interface <dfn id=applicationcache>ApplicationCache</dfn> {
@@ -57098,7 +57100,7 @@
</table></div>
- <h4 id=browser-state><span class=secno>6.9.9 </span>Browser state</h4>
+ <h4 id=browser-state><span class=secno>6.8.9 </span>Browser state</h4>
<dl class=domintro><dt><var title="">window</var> . <code title=dom-navigator><a href=#dom-navigator>navigator</a></code> . <code title=dom-navigator-onLine><a href=#dom-navigator-online>onLine</a></code></dt>
@@ -57141,9 +57143,9 @@
- <h3 id=history><span class=secno>6.10 </span>Session history and navigation</h3>
+ <h3 id=history><span class=secno>6.9 </span>Session history and navigation</h3>
- <h4 id=the-session-history-of-browsing-contexts><span class=secno>6.10.1 </span>The session history of browsing contexts</h4>
+ <h4 id=the-session-history-of-browsing-contexts><span class=secno>6.9.1 </span>The session history of browsing contexts</h4>
<p>The sequence of <code>Document</code>s in a <a href=#browsing-context>browsing
context</a> is its <dfn id=session-history>session history</dfn>.</p>
@@ -57242,7 +57244,7 @@
</div>
- <h4 id=the-history-interface><span class=secno>6.10.2 </span>The <code><a href=#history-0>History</a></code> interface</h4>
+ <h4 id=the-history-interface><span class=secno>6.9.2 </span>The <code><a href=#history-0>History</a></code> interface</h4>
<pre class=idl>interface <dfn id=history-0>History</dfn> {
readonly attribute long <a href=#dom-history-length title=dom-history-length>length</a>;
@@ -57598,7 +57600,7 @@
- <h4 id=the-location-interface><span class=secno>6.10.3 </span>The <code><a href=#location>Location</a></code> interface</h4>
+ <h4 id=the-location-interface><span class=secno>6.9.3 </span>The <code><a href=#location>Location</a></code> interface</h4>
<p>Each <code>Document</code> object in a <a href=#browsing-context>browsing
context</a>'s session history is associated with a unique
@@ -57806,7 +57808,7 @@
<div class=impl>
- <h5 id=security-3><span class=secno>6.10.3.1 </span>Security</h5>
+ <h5 id=security-3><span class=secno>6.9.3.1 </span>Security</h5>
<p>User agents must raise a <code><a href=#security_err>SECURITY_ERR</a></code> exception whenever
any of the members of a <code><a href=#location>Location</a></code> object are accessed by
@@ -57829,7 +57831,7 @@
<div class=impl>
- <h4 id=history-notes><span class=secno>6.10.4 </span>Implementation notes for session history</h4>
+ <h4 id=history-notes><span class=secno>6.9.4 </span>Implementation notes for session history</h4>
<!-- don't change the ID without updating multiple internal links -->
<p><i>This section is non-normative.</i></p>
@@ -57868,11 +57870,11 @@
</div>
- <h3 id=browsing-the-web><span class=secno>6.11 </span>Browsing the Web</h3>
+ <h3 id=browsing-the-web><span class=secno>6.10 </span>Browsing the Web</h3>
<div class=impl>
- <h4 id=navigating-across-documents><span class=secno>6.11.1 </span>Navigating across documents</h4>
+ <h4 id=navigating-across-documents><span class=secno>6.10.1 </span>Navigating across documents</h4>
<p>Certain actions cause the <a href=#browsing-context>browsing context</a> to
<i><a href=#navigate>navigate</a></i> to a new resource. Navigation always involves
@@ -58313,7 +58315,7 @@
source</a>.</p>
- <h4 id=read-html><span class=secno>6.11.2 </span><dfn title=navigate-html>Page load processing model for HTML files</dfn></h4>
+ <h4 id=read-html><span class=secno>6.10.2 </span><dfn title=navigate-html>Page load processing model for HTML files</dfn></h4>
<p>When an HTML document is to be loaded in a <a href=#browsing-context>browsing
context</a>, the user agent must <a href=#create-a-document-object>create a
@@ -58346,7 +58348,7 @@
- <h4 id=read-xml><span class=secno>6.11.3 </span><dfn title=navigate-xml>Page load processing model for XML files</dfn></h4>
+ <h4 id=read-xml><span class=secno>6.10.3 </span><dfn title=navigate-xml>Page load processing model for XML files</dfn></h4>
<p>When faced with displaying an XML file inline, user agents must
first <a href=#create-a-document-object>create a <code>Document</code> object</a>, following
@@ -58402,7 +58404,7 @@
<code>Document</code>.</p>
- <h4 id=read-text><span class=secno>6.11.4 </span><dfn title=navigate-text>Page load processing model for text files</dfn></h4>
+ <h4 id=read-text><span class=secno>6.10.4 </span><dfn title=navigate-text>Page load processing model for text files</dfn></h4>
<p>When a plain text document is to be loaded in a <a href=#browsing-context>browsing
context</a>, the user agent should <a href=#create-a-document-object>create a
@@ -58445,7 +58447,7 @@
etc.</p>
- <h4 id=read-image><span class=secno>6.11.5 </span><dfn title=navigate-image>Page load processing model for images</dfn></h4>
+ <h4 id=read-image><span class=secno>6.10.5 </span><dfn title=navigate-image>Page load processing model for images</dfn></h4>
<p>When an image resource is to be loaded in a <a href=#browsing-context>browsing
context</a>, the user agent should <a href=#create-a-document-object>create a
@@ -58477,7 +58479,7 @@
a script, to give the document a <code><a href=#the-title-element-0>title</a></code>, etc.</p>
- <h4 id=read-plugin><span class=secno>6.11.6 </span><dfn title=navigate-plugin>Page load processing model for content that uses plugins</dfn></h4>
+ <h4 id=read-plugin><span class=secno>6.10.6 </span><dfn title=navigate-plugin>Page load processing model for content that uses plugins</dfn></h4>
<p>When a resource that requires an external resource to be rendered
is to be loaded in a <a href=#browsing-context>browsing context</a>, the user agent
@@ -58515,7 +58517,7 @@
synthesized <code><a href=#the-embed-element>embed</a></code> element will <a href=#sandboxPluginEmbed>fail to render the content</a>.</p>
- <h4 id=read-ua-inline><span class=secno>6.11.7 </span><dfn title=navigate-ua-inline>Page load processing model for inline content that doesn't have a DOM</dfn></h4>
+ <h4 id=read-ua-inline><span class=secno>6.10.7 </span><dfn title=navigate-ua-inline>Page load processing model for inline content that doesn't have a DOM</dfn></h4>
<p>When the user agent is to display a user agent page inline in a
<a href=#browsing-context>browsing context</a>, the user agent should <a href=#create-a-document-object>create a
@@ -58542,7 +58544,7 @@
- <h4 id=scroll-to-fragid><span class=secno>6.11.8 </span><dfn title=navigate-fragid>Navigating to a fragment identifier</dfn></h4>
+ <h4 id=scroll-to-fragid><span class=secno>6.10.8 </span><dfn title=navigate-fragid>Navigating to a fragment identifier</dfn></h4>
<p>When a user agent is supposed to navigate to a fragment
identifier, then the user agent must <a href=#queue-a-task>queue a task</a> to
@@ -58637,7 +58639,7 @@
- <h4 id=history-traversal><span class=secno>6.11.9 </span>History traversal</h4> <!-- session history -->
+ <h4 id=history-traversal><span class=secno>6.10.9 </span>History traversal</h4> <!-- session history -->
<div class=impl>
@@ -58809,7 +58811,7 @@
<a href=#dom-manipulation-task-source>DOM manipulation task source</a>.</p>
- <h5 id=event-definitions><span class=secno>6.11.9.1 </span>Event definitions</h5>
+ <h5 id=event-definitions><span class=secno>6.10.9.1 </span>Event definitions</h5>
</div>
@@ -58893,7 +58895,7 @@
- <h4 id=unloading-documents><span class=secno>6.11.10 </span>Unloading documents</h4>
+ <h4 id=unloading-documents><span class=secno>6.10.10 </span>Unloading documents</h4>
<div class=impl>
@@ -59035,7 +59037,7 @@
<code>Document</code>'s <a href=#browsing-context>browsing context</a> must <a href=#discard-a-document title="discard a document">discard the
<code>Document</code></a>.</li>
- </ol><h5 id=event-definition><span class=secno>6.11.10.1 </span>Event definition</h5>
+ </ol><h5 id=event-definition><span class=secno>6.10.10.1 </span>Event definition</h5>
</div>
@@ -59069,7 +59071,7 @@
<div class=impl>
- <h4 id=aborting-a-document-load><span class=secno>6.11.11 </span>Aborting a document load</h4>
+ <h4 id=aborting-a-document-load><span class=secno>6.10.11 </span>Aborting a document load</h4>
<p>If the user cancels any instance of the <a href=#fetch title=fetch>fetching algorithm</a> in the context of a
<code>Document</code> in a <a href=#browsing-context>browsing context</a>, then, if
Modified: source
===================================================================
--- source 2010-02-05 23:16:41 UTC (rev 4666)
+++ source 2010-02-05 23:25:48 UTC (rev 4667)
@@ -58255,51 +58255,8 @@
</div>
- <div class="impl">
- <h3>The <code>WindowProxy</code> object</h3>
-<!--END complete--><!--END html--><!--END w3c-html-->
-<!-- this is for the purposes of the IDL validator -->
-<pre class="idl">
-interface <dfn>WindowProxy</dfn>: <span>Window</span> {};
-</pre>
-<!--START complete--><!--START html--><!--START w3c-html-->
-
- <p>As mentioned earlier, each <span>browsing context</span> has a
- <dfn><code>WindowProxy</code></dfn> object. This object is unusual
- in that all operations that would be performed on it must be
- performed 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>
-
- <p class="note">The <code>WindowProxy</code> object allows scripts
- to act as if each <span>browsing context</span> had a single
- <code>Window</code> object, while still keeping separate
- <code>Window</code> objects for each <code>Document</code>.</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 object. 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>
-
-
-
<h3>The <code>Window</code> object</h3>
<pre class="idl">[OverrideBuiltins, ReplaceableNamedProperties] <!-- XXX http://www.w3.org/Bugs/Public/show_bug.cgi?id=8241 -->
@@ -59031,6 +58988,51 @@
<div class="impl">
+ <h4>The <code>WindowProxy</code> object</h4>
+
+<!--END complete--><!--END html--><!--END w3c-html-->
+<!-- this is for the purposes of the IDL validator -->
+<pre class="idl">
+interface <dfn>WindowProxy</dfn>: <span>Window</span> {};
+</pre>
+<!--START complete--><!--START html--><!--START w3c-html-->
+
+ <p>As mentioned earlier, each <span>browsing context</span> has a
+ <dfn><code>WindowProxy</code></dfn> object. This object is unusual
+ in that all operations that would be performed on it must be
+ performed 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>
+
+ <p class="note">The <code>WindowProxy</code> object allows scripts
+ to act as if each <span>browsing context</span> had a single
+ <code>Window</code> object, while still keeping separate
+ <code>Window</code> objects for each <code>Document</code>.</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 object. 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>
+
+
+
+ <div class="impl">
+
<h3>Origin</h3>
<!-- Hallowed are the Ori -->
More information about the Commit-Watchers
mailing list