Permalink
Browse files

Make open() throw for sync when the anonymous flag is set, too

Also fix the domintro description of open.

Fixes https://www.w3.org/Bugs/Public/show_bug.cgi?id=14773
  • Loading branch information...
1 parent 787c904 commit ac6d9b636bd6d86a9752006e8c34160a215e6fe1 @annevk annevk committed Oct 11, 2012
Showing with 8 additions and 4 deletions.
  1. +4 −2 Overview.html
  2. +4 −2 Overview.src.html
View
@@ -600,7 +600,7 @@ <h4 id="the-open()-method"><span class="secno">4.7.1 </span>The <code title="">o
<dl class="domintro">
<dt><code><var title="">client</var> . <a href="#dom-xmlhttprequest-open" title="dom-XMLHttpRequest-open">open</a>(<var title="">method</var>,
- <var title="">url</var> [, <var title="">async</var> = false [, <var title="">user</var> = null [,
+ <var title="">url</var> [, <var title="">async</var> = true [, <var title="">user</var> = null [,
<var title="">password</var> = null]]])</code>
<dd>
@@ -623,8 +623,9 @@ <h4 id="the-open()-method"><span class="secno">4.7.1 </span>The <code title="">o
<code>CONNECT</code>, <code>TRACE</code> or <code>TRACK</code>.</p>
<p>Throws an "<code class="external"><a href="http://dom.spec.whatwg.org/#invalidaccesserror">InvalidAccessError</a></code>"
- exception if there is an associated
+ exception if <var title="">async</var> is false, there is an associated
<a href="#xmlhttprequest-document"><code>XMLHttpRequest</code> document</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>
@@ -734,6 +735,7 @@ <h4 id="the-open()-method"><span class="secno">4.7.1 </span>The <code title="">o
<li><p>If <var>async</var> is false, there is an associated
<a href="#xmlhttprequest-document"><code>XMLHttpRequest</code> document</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>
View
@@ -548,7 +548,7 @@ <h3 id="request">Request</h3>
<dl class=domintro>
<dt><code><var title>client</var> . <span title=dom-XMLHttpRequest-open>open</span>(<var title>method</var>,
- <var title>url</var> [, <var title>async</var> = false [, <var title>user</var> = null [,
+ <var title>url</var> [, <var title>async</var> = true [, <var title>user</var> = null [,
<var title>password</var> = null]]])</code>
<dd>
@@ -571,8 +571,9 @@ <h3 id="request">Request</h3>
<code>CONNECT</code>, <code>TRACE</code> or <code>TRACK</code>.</p>
<p>Throws an "<code data-anolis-spec=dom>InvalidAccessError</code>"
- exception if there is an associated
+ exception if <var title>async</var> is false, there is an associated
<span><code>XMLHttpRequest</code> document</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>
@@ -682,6 +683,7 @@ <h3 id="request">Request</h3>
<li><p>If <var>async</var> is false, there is an associated
<span><code>XMLHttpRequest</code> document</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>

0 comments on commit ac6d9b6

Please sign in to comment.