--- a/Overview.html Mon Nov 26 22:36:12 2012 +0900
+++ b/Overview.html Tue Nov 27 11:51:01 2012 +0900
@@ -48,7 +48,7 @@
<h1 class="head" id="xmlhttprequest-ls">XMLHttpRequest</h1>
- <h2 class="no-num no-toc" id="w3c-doctype">Editor's Draft 26 November 2012</h2>
+ <h2 class="no-num no-toc" id="w3c-doctype">Editor's Draft 27 November 2012</h2>
<dl>
<dt>This Version:</dt>
@@ -128,7 +128,7 @@
available in the WHATWG <a href="http://xhr.spec.whatwg.org/">XMLHttpRequest Living Standard</a>, under a license that permits reuse of the specification text.</p>
<p>The W3C <a href="http://www.w3.org/2008/webapps/">Web Applications Working
- Group</a> is the W3C working group responsible for this specification's progress along the W3C Recommendation track. This specification is the 26 November 2012 Editor's Draft.</p>
+ Group</a> is the W3C working group responsible for this specification's progress along the W3C Recommendation track. This specification is the 27 November 2012 Editor's Draft.</p>
<p>Publication as an Editor's Draft does not imply endorsement by the W3C
Membership. This is a draft document and may be updated, replaced or
@@ -489,6 +489,11 @@
<a href="#source-origin">source origin</a> are not exposed when
<a class="external" href="http://dev.w3.org/html5/spec/urls.html#fetch" title="fetch">fetching</a> resources.
+ <p>When the <a class="external" href="http://dev.w3.org/html5/spec/infrastructure.html#javascript-global-environment">JavaScript global environment</a>
+ is a <a class="external" href="http://dev.w3.org/html5/spec/webappapis.html#document-environment">document environment</a>, the
+ <code><a href="#xmlhttprequest">XMLHttpRequest</a></code> object has an associated
+ <dfn id="concept-xmlhttprequest-document" title="concept-XMLHttpRequest-document">document</dfn>.
+
<dl class="domintro">
<dt><code><var title="">client</var> = new <a href="#dom-xmlhttprequest" title="dom-XMLHttpRequest">XMLHttpRequest</a>()</code>
<dd>Returns a new <code><a href="#xmlhttprequest">XMLHttpRequest</a></code> object.
@@ -509,6 +514,14 @@
<li><p>If <var title="">options</var>'s <code title="">anon</code> member is
true, set <var title="">xhr</var>'s <a href="#anonymous-flag">anonymous flag</a>.
+ <li><p>If the
+ <a class="external" href="http://dev.w3.org/html5/spec/infrastructure.html#javascript-global-environment">JavaScript global environment</a> is a
+ <a class="external" href="http://dev.w3.org/html5/spec/webappapis.html#document-environment">document environment</a>, set
+ <a href="#concept-xmlhttprequest-document" title="concept-XMLHttpRequest-document">document</a> to the
+ <a class="external" href="http://dev.w3.org/2006/webapi/DOM4Core/#concept-document" title="concept-document">document</a>
+ associated with the global object of <var title="">xhr</var>'s interface
+ object.
+
<li><p>Return <var title="">xhr</var>.
</ol>
@@ -745,31 +758,23 @@
<a class="external" href="http://dev.w3.org/html5/spec/webappapis.html#document-environment">document environment</a>, run these steps:
<ol>
- <li>
- <p>Let <var title="">document</var> be the
- <a class="external" href="http://dev.w3.org/2006/webapi/DOM4Core/#concept-document" title="concept-document">document</a>
- associated with the global object for which the
- <code><a href="#xmlhttprequest">XMLHttpRequest</a></code> interface object was created from which
- this <code><a href="#xmlhttprequest">XMLHttpRequest</a></code> object was created.
-
- <p class="XXX">Should this move to the constructor phase?
-
- <li><p>If <var title="">document</var> is not
- <a class="external" href="http://dev.w3.org/html5/spec/browsers.html#fully-active">fully active</a>,
+ <li><p>If <a href="#concept-xmlhttprequest-document" title="concept-XMLHttpRequest-document">document</a>
+ is not <a class="external" href="http://dev.w3.org/html5/spec/browsers.html#fully-active">fully active</a>,
<a class="external" href="http://dev.w3.org/2006/webapi/DOM4Core/#concept-throw" title="concept-throw">throw</a> an
"<code class="external"><a href="http://dev.w3.org/2006/webapi/DOM4Core/#invalidstateerror">InvalidStateError</a></code>" exception and
terminate the overall set of steps.
<li><p>Set <var title="">base</var> to the
<a class="external" href="http://dev.w3.org/html5/spec/urls.html#document-base-url">document base URL</a> of
- <var title="">document</var>.
+ <a href="#concept-xmlhttprequest-document" title="concept-XMLHttpRequest-document">document</a>.
<li><p>Set <a href="#source-origin">source origin</a> to a globally unique identifier,
if the <a href="#anonymous-flag">anonymous flag</a> is set, and the
- <a class="external" href="http://dev.w3.org/html5/spec/browsers.html#origin">origin</a> of <var title="">document</var>
- otherwise.
-
- <li><p>Set <a href="#referrer-source">referrer source</a> to <var title="">document</var>.
+ <a class="external" href="http://dev.w3.org/html5/spec/browsers.html#origin">origin</a> of
+ <a href="#concept-xmlhttprequest-document" title="concept-XMLHttpRequest-document">document</a> otherwise.
+
+ <li><p>Set <a href="#referrer-source">referrer source</a> to
+ <a href="#concept-xmlhttprequest-document" title="concept-XMLHttpRequest-document">document</a>.
</ol>
<li>
--- a/Overview.src.html Mon Nov 26 22:36:12 2012 +0900
+++ b/Overview.src.html Tue Nov 27 11:51:01 2012 +0900
@@ -457,6 +457,11 @@
<span>source origin</span> are not exposed when
<span data-anolis-spec=html title=fetch>fetching</span> resources.
+ <p>When the <span data-anolis-spec=html>JavaScript global environment</span>
+ is a <span data-anolis-spec=html>document environment</span>, the
+ <code>XMLHttpRequest</code> object has an associated
+ <dfn title=concept-XMLHttpRequest-document>document</dfn>.
+
<dl class=domintro>
<dt><code><var title>client</var> = new <span title=dom-XMLHttpRequest>XMLHttpRequest</span>()</code>
<dd>Returns a new <code>XMLHttpRequest</code> object.
@@ -477,6 +482,14 @@
<li><p>If <var title>options</var>'s <code title>anon</code> member is
true, set <var title>xhr</var>'s <span>anonymous flag</span>.
+ <li><p>If the
+ <span data-anolis-spec=html>JavaScript global environment</span> is a
+ <span data-anolis-spec=html>document environment</span>, set
+ <span title=concept-XMLHttpRequest-document>document</span> to the
+ <span title=concept-document data-anolis-spec=dom>document</span>
+ associated with the global object of <var title>xhr</var>'s interface
+ object.
+
<li><p>Return <var title>xhr</var>.
</ol>
@@ -713,31 +726,23 @@
<span data-anolis-spec=html>document environment</span>, run these steps:
<ol>
- <li>
- <p>Let <var title>document</var> be the
- <span data-anolis-spec=dom title=concept-document>document</span>
- associated with the global object for which the
- <code>XMLHttpRequest</code> interface object was created from which
- this <code>XMLHttpRequest</code> object was created.
-
- <p class=XXX>Should this move to the constructor phase?
-
- <li><p>If <var title>document</var> is not
- <span data-anolis-spec=html>fully active</span>,
+ <li><p>If <span title=concept-XMLHttpRequest-document>document</span>
+ is not <span data-anolis-spec=html>fully active</span>,
<span data-anolis-spec=dom title=concept-throw>throw</span> an
"<code data-anolis-spec=dom>InvalidStateError</code>" exception and
terminate the overall set of steps.
<li><p>Set <var title>base</var> to the
<span data-anolis-spec=html>document base URL</span> of
- <var title>document</var>.
+ <span title=concept-XMLHttpRequest-document>document</span>.
<li><p>Set <span>source origin</span> to a globally unique identifier,
if the <span>anonymous flag</span> is set, and the
- <span data-anolis-spec=html>origin</span> of <var title>document</var>
- otherwise.
-
- <li><p>Set <span>referrer source</span> to <var title>document</var>.
+ <span data-anolis-spec=html>origin</span> of
+ <span title=concept-XMLHttpRequest-document>document</span> otherwise.
+
+ <li><p>Set <span>referrer source</span> to
+ <span title=concept-XMLHttpRequest-document>document</span>.
</ol>
<li>
--- a/data/xrefs/dom/xhr.json Mon Nov 26 22:36:12 2012 +0900
+++ b/data/xrefs/dom/xhr.json Tue Nov 27 11:51:01 2012 +0900
@@ -5,6 +5,7 @@
"arraybuffer response entity body": "arraybuffer-response-entity-body",
"author request headers": "author-request-headers",
"blob response entity body": "blob-response-entity-body",
+ "concept-xmlhttprequest-document": "concept-xmlhttprequest-document",
"cross-origin request event rules": "cross-origin-request-event-rules",
"cross-origin request steps": "cross-origin-request-steps",
"document response entity body": "document-response-entity-body",