--- a/xhr-1/Overview.html Wed Oct 23 21:47:37 2013 +0900
+++ b/xhr-1/Overview.html Wed Oct 30 16:22:04 2013 +0900
@@ -40,7 +40,7 @@
<h1 class="head" id="xmlhttprequest-ls">XMLHttpRequest Level 1</h1>
- <h2 class="no-num no-toc" id="w3c-doctype">Editor's Draft 23 October 2013</h2>
+ <h2 class="no-num no-toc" id="w3c-doctype">Editor's Draft 30 October 2013</h2>
<dl>
<dt>This Version:</dt>
@@ -123,7 +123,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 23 October 2013 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 30 October 2013 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
@@ -163,7 +163,7 @@
<li><a href="#interface-xmlhttprequest"><span class="secno">4 </span>Interface <code title="">XMLHttpRequest</code></a>
<ol class="toc">
<li><a href="#task-sources"><span class="secno">4.1 </span>Task sources</a></li>
- <li><a href="#constructors"><span class="secno">4.2 </span>Constructors</a></li>
+ <li><a href="#constructor"><span class="secno">4.2 </span>Constructor</a></li>
<li><a href="#garbage-collection"><span class="secno">4.3 </span>Garbage collection</a></li>
<li><a href="#event-handlers"><span class="secno">4.4 </span>Event handlers</a></li>
<li><a href="#states"><span class="secno">4.5 </span>States</a></li>
@@ -428,11 +428,7 @@
"text"
};
-dictionary <dfn id="xmlhttprequestoptions">XMLHttpRequestOptions</dfn> {
- boolean anonymous = false;
-};
-
-[<a href="#dom-xmlhttprequest" title="dom-XMLHttpRequest">Constructor</a>(optional <a href="#xmlhttprequestoptions">XMLHttpRequestOptions</a> <var title="">options</var>)]
+[<a href="#dom-xmlhttprequest" title="dom-XMLHttpRequest">Constructor</a>]
interface <dfn id="xmlhttprequest">XMLHttpRequest</dfn> : <a href="#xmlhttprequesteventtarget">XMLHttpRequestEventTarget</a> {
// <a href="#event-handlers">event handler</a>
attribute <a class="external" href="http://www.w3.org/html/wg/drafts/html/master/webappapis.html#eventhandler">EventHandler</a> <a href="#handler-xhr-onreadystatechange" title="handler-xhr-onreadystatechange">onreadystatechange</a>;
@@ -484,13 +480,7 @@
<dfn id="xmlhttprequest-task-source"><code>XMLHttpRequest</code> task source</dfn>.
- <h3 id="constructors"><span class="secno">4.2 </span>Constructors</h3>
-
- <p>The <code><a href="#xmlhttprequest">XMLHttpRequest</a></code> object has an associated
- <dfn id="anonymous-flag">anonymous flag</dfn>. If the <a href="#anonymous-flag">anonymous flag</a> is set,
- <a href="#user-credentials">user credentials</a> and the
- <a href="#source-origin">source origin</a> are not exposed when
- <a class="external" href="http://www.w3.org/html/wg/drafts/html/master/infrastructure.html#fetch" title="fetch">fetching</a> resources.
+ <h3 id="constructor"><span class="secno">4.2 </span>Constructor</h3>
<p>When the <a class="external" href="http://www.w3.org/html/wg/drafts/html/master/infrastructure.html#javascript-global-environment">JavaScript global environment</a>
is a <a class="external" href="http://www.w3.org/html/wg/drafts/html/master/webappapis.html#document-environment">document environment</a>, the
@@ -500,23 +490,16 @@
<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.
-
- <dt><code><var title="">client</var> = new <a href="#dom-xmlhttprequest" title="dom-XMLHttpRequest">XMLHttpRequest</a>({anonymous:true})</code>
- <dd>Returns a new <code><a href="#xmlhttprequest">XMLHttpRequest</a></code> object that has its
- <a href="#anonymous-flag">anonymous flag</a> set.
</dl>
<p>The
- <dfn id="dom-xmlhttprequest" title="dom-XMLHttpRequest"><code>XMLHttpRequest(<var title="">options</var>)</code></dfn>
+ <dfn id="dom-xmlhttprequest" title="dom-XMLHttpRequest"><code>XMLHttpRequest()</code></dfn>
constructor must run these steps:
<ol>
<li><p>Let <var title="">xhr</var> be a new <code><a href="#xmlhttprequest">XMLHttpRequest</a></code>
object.
- <li><p>If <var title="">options</var>'s <code title="">anonymous</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://www.w3.org/html/wg/drafts/html/master/infrastructure.html#javascript-global-environment">JavaScript global environment</a> is a
<a class="external" href="http://www.w3.org/html/wg/drafts/html/master/webappapis.html#document-environment">document environment</a>, set <var title="">xhr</var>'s
@@ -737,7 +720,6 @@
exception if <var title="">async</var> is false, the
<a class="external" href="http://www.w3.org/html/wg/drafts/html/master/infrastructure.html#javascript-global-environment">JavaScript global environment</a> is a
<a class="external" href="http://www.w3.org/html/wg/drafts/html/master/webappapis.html#document-environment">document environment</a>, and either the
- <a href="#anonymous-flag">anonymous flag</a> is set, the
<code title="dom-XMLHttpRequest-timeout"><a href="#dom-xmlhttprequest-timeout">timeout</a></code> attribute is not
zero, the
<code title="dom-XMLHttpRequest-withCredentials"><a href="#dom-xmlhttprequest-withcredentials">withCredentials</a></code>
@@ -767,9 +749,8 @@
<a class="external" href="http://www.w3.org/html/wg/drafts/html/master/urls.html#document-base-url">document base URL</a> of
<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://www.w3.org/html/wg/drafts/html/master/browsers.html#origin">origin</a>
- of <a href="#concept-xmlhttprequest-document" title="concept-XMLHttpRequest-document">document</a> otherwise.
+ <li><p>Set <a href="#source-origin">source origin</a> to the <a class="external" href="http://www.w3.org/html/wg/drafts/html/master/browsers.html#origin">origin</a>
+ of <a href="#concept-xmlhttprequest-document" title="concept-XMLHttpRequest-document">document</a>.
<li><p>Set <a href="#referrer-source">referrer source</a> to
<a href="#concept-xmlhttprequest-document" title="concept-XMLHttpRequest-document">document</a>.
@@ -840,7 +821,6 @@
<li><p>If <var>async</var> is false, the
<a class="external" href="http://www.w3.org/html/wg/drafts/html/master/infrastructure.html#javascript-global-environment">JavaScript global environment</a> is a
<a class="external" href="http://www.w3.org/html/wg/drafts/html/master/webappapis.html#document-environment">document environment</a>, and either the
- <a href="#anonymous-flag">anonymous flag</a> is set, the
<code title="dom-XMLHttpRequest-timeout"><a href="#dom-xmlhttprequest-timeout">timeout</a></code> attribute value is not zero, the
<code title="dom-XMLHttpRequest-withCredentials"><a href="#dom-xmlhttprequest-withcredentials">withCredentials</a></code> attribute value is
true, or the <code title="dom-XMLHttpRequest-responseType"><a href="#dom-xmlhttprequest-responsetype">responseType</a></code> attribute
@@ -1072,10 +1052,9 @@
the <a href="#send-flag"><code>send()</code> flag</a> is set.</p>
<p>When set: throws an
"<code class="external"><a href="http://dev.w3.org/2006/webapi/DOM4Core/#invalidaccesserror">InvalidAccessError</a></code>" exception if
- either the <a href="#synchronous-flag">synchronous flag</a> is set and the
+ the <a href="#synchronous-flag">synchronous flag</a> is set and the
<a class="external" href="http://www.w3.org/html/wg/drafts/html/master/infrastructure.html#javascript-global-environment">JavaScript global environment</a> is a
- <a class="external" href="http://www.w3.org/html/wg/drafts/html/master/webappapis.html#document-environment">document environment</a> or if the
- <a href="#anonymous-flag">anonymous flag</a> is set.</p>
+ <a class="external" href="http://www.w3.org/html/wg/drafts/html/master/webappapis.html#document-environment">document environment</a>.</p>
</dd>
</dl>
@@ -1098,10 +1077,6 @@
<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.
- <li><p>If the <a href="#anonymous-flag">anonymous flag</a> is set,
- <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/#invalidaccesserror">InvalidAccessError</a></code>" exception.
-
<li><p>If the
<a class="external" href="http://www.w3.org/html/wg/drafts/html/master/infrastructure.html#javascript-global-environment">JavaScript global environment</a> is a
<a class="external" href="http://www.w3.org/html/wg/drafts/html/master/webappapis.html#document-environment">document environment</a> and the
@@ -1377,10 +1352,8 @@
<dd>The <a href="#source-origin">source origin</a>.</dd>
<dt>referrer source
- <dd>If the <a href="#anonymous-flag">anonymous flag</a> is set, the
- <a class="external" href="http://url.spec.whatwg.org/#url">URL</a>
- "<code title="">about:blank</code>", and the
- <a href="#referrer-source">referrer source</a> otherwise.
+ <dd>The
+ <a href="#referrer-source">referrer source</a>.
<dt>omit credentials flag</dt>
<dd>Set if
--- a/xhr-1/Overview.src.html Wed Oct 23 21:47:37 2013 +0900
+++ b/xhr-1/Overview.src.html Wed Oct 30 16:22:04 2013 +0900
@@ -437,11 +437,7 @@
"text"
};
-dictionary <dfn>XMLHttpRequestOptions</dfn> {
- boolean anonymous = false;
-};
-
-[<span title="dom-XMLHttpRequest">Constructor</span>(optional <span>XMLHttpRequestOptions</span> <var title>options</var>)]
+[<span title="dom-XMLHttpRequest">Constructor</span>]
interface <dfn id="xmlhttprequest">XMLHttpRequest</dfn> : <span>XMLHttpRequestEventTarget</span> {
// <a href="#event-handlers">event handler</a>
attribute <span data-anolis-spec=html>EventHandler</span> <span title="handler-xhr-onreadystatechange">onreadystatechange</span>;
@@ -493,13 +489,7 @@
<dfn><code>XMLHttpRequest</code> task source</dfn>.
- <h3 id="constructors">Constructors</h3>
-
- <p>The <code>XMLHttpRequest</code> object has an associated
- <dfn>anonymous flag</dfn>. If the <span>anonymous flag</span> is set,
- <span>user credentials</span> and the
- <span>source origin</span> are not exposed when
- <span data-anolis-spec=html title=fetch>fetching</span> resources.
+ <h3 id="constructor">Constructor</h3>
<p>When the <span data-anolis-spec=html>JavaScript global environment</span>
is a <span data-anolis-spec=html>document environment</span>, the
@@ -509,23 +499,16 @@
<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.
-
- <dt><code><var title>client</var> = new <span title=dom-XMLHttpRequest>XMLHttpRequest</span>({anonymous:true})</code>
- <dd>Returns a new <code>XMLHttpRequest</code> object that has its
- <span>anonymous flag</span> set.
</dl>
<p>The
- <dfn title="dom-XMLHttpRequest"><code>XMLHttpRequest(<var title>options</var>)</code></dfn>
+ <dfn title="dom-XMLHttpRequest"><code>XMLHttpRequest()</code></dfn>
constructor must run these steps:
<ol>
<li><p>Let <var title>xhr</var> be a new <code>XMLHttpRequest</code>
object.
- <li><p>If <var title>options</var>'s <code title>anonymous</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 <var title>xhr</var>'s
@@ -746,7 +729,6 @@
exception if <var title>async</var> is false, the
<span data-anolis-spec=html>JavaScript global environment</span> is a
<span data-anolis-spec=html>document environment</span>, and either the
- <span>anonymous flag</span> is set, the
<code title=dom-XMLHttpRequest-timeout>timeout</code> attribute is not
zero, the
<code title=dom-XMLHttpRequest-withCredentials>withCredentials</code>
@@ -776,9 +758,8 @@
<span data-anolis-spec=html>document base URL</span> of
<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 <span title=concept-XMLHttpRequest-document>document</span> otherwise.
+ <li><p>Set <span>source origin</span> to the <span data-anolis-spec=html>origin</span>
+ of <span title=concept-XMLHttpRequest-document>document</span>.
<li><p>Set <span>referrer source</span> to
<span title=concept-XMLHttpRequest-document>document</span>.
@@ -849,7 +830,6 @@
<li><p>If <var>async</var> is false, the
<span data-anolis-spec=html>JavaScript global environment</span> is a
<span data-anolis-spec=html>document environment</span>, and either the
- <span>anonymous flag</span> is set, the
<code title=dom-XMLHttpRequest-timeout>timeout</code> attribute value is not zero, the
<code title=dom-XMLHttpRequest-withCredentials>withCredentials</code> attribute value is
true, or the <code title=dom-XMLHttpRequest-responseType>responseType</code> attribute
@@ -1081,10 +1061,9 @@
the <span><code>send()</code> flag</span> is set.</p>
<p>When set: throws an
"<code data-anolis-spec=dom>InvalidAccessError</code>" exception if
- either the <span>synchronous flag</span> is set and the
+ the <span>synchronous flag</span> is set and the
<span data-anolis-spec=html>JavaScript global environment</span> is a
- <span data-anolis-spec=html>document environment</span> or if the
- <span>anonymous flag</span> is set.</p>
+ <span data-anolis-spec=html>document environment</span>.</p>
</dd>
</dl>
@@ -1107,10 +1086,6 @@
<span data-anolis-spec=dom title=concept-throw>throw</span> an
"<code data-anolis-spec=dom>InvalidStateError</code>" exception.
- <li><p>If the <span>anonymous flag</span> is set,
- <span data-anolis-spec=dom title=concept-throw>throw</span> an
- "<code data-anolis-spec=dom>InvalidAccessError</code>" exception.
-
<li><p>If the
<span data-anolis-spec=html>JavaScript global environment</span> is a
<span data-anolis-spec=html>document environment</span> and the
@@ -1386,10 +1361,8 @@
<dd>The <span>source origin</span>.</dd>
<dt>referrer source
- <dd>If the <span>anonymous flag</span> is set, the
- <span data-anolis-spec=url>URL</span>
- "<code title>about:blank</code>", and the
- <span>referrer source</span> otherwise.
+ <dd>The
+ <span>referrer source</span>.
<dt>omit credentials flag</dt>
<dd>Set if
--- a/xhr-1/data/xrefs/dom/xhr.json Wed Oct 23 21:47:37 2013 +0900
+++ b/xhr-1/data/xrefs/dom/xhr.json Wed Oct 30 16:22:04 2013 +0900
@@ -1,7 +1,6 @@
{
"definitions": {
"abort error": "abort-error",
- "anonymous flag": "anonymous-flag",
"arraybuffer response entity body": "arraybuffer-response-entity-body",
"author request headers": "author-request-headers",
"blob response entity body": "blob-response-entity-body",
@@ -88,7 +87,6 @@
"xmlhttprequest": "xmlhttprequest",
"xmlhttprequest task source": "xmlhttprequest-task-source",
"xmlhttprequesteventtarget": "xmlhttprequesteventtarget",
- "xmlhttprequestoptions": "xmlhttprequestoptions",
"xmlhttprequestresponsetype": "xmlhttprequestresponsetype",
"xmlhttprequestupload": "xmlhttprequestupload"
},