--- a/Overview.html Fri Dec 02 13:36:23 2011 +0100
+++ b/Overview.html Fri Dec 02 13:57:57 2011 +0100
@@ -130,8 +130,7 @@
<li><a href="#the-append-method"><span class="secno">5.2 </span>The <code title="">append()</code> method</a></ol></li>
<li><a class="no-num" href="#references">References</a>
<ol class="toc">
- <li><a class="no-num" href="#normative-references">Normative references</a></li>
- <li><a class="no-num" href="#informative-references">Informative references</a></ol></li>
+ <li><a class="no-num" href="#normative-references">Normative references</a></ol></li>
<li><a class="no-num" href="#acknowledgments">Acknowledgments</a></ol>
<!--end-toc-->
@@ -2306,6 +2305,22 @@
</ol>
+<p>The <dfn id="json-response-entity-body">JSON response entity body</dfn> is an ECMAScript value
+representing the <a href="#response-entity-body">response entity body</a>. The
+<a href="#json-response-entity-body">JSON response entity body</a> is the return value of the following
+algorithm:</p>
+
+<ol>
+ <li>Let <var title="">JSON text</var> be the <a href="#response-entity-body">response entity body</a>
+ decoded using UTF-8.</li>
+
+ <li>Return the result of invoking the <code title="">parse</code> function
+ of the <code>JSON</code> object defined in ECMAScript, with
+ <var title="">JSON text</var> as its only argument, or null if that function
+ throws an exception. <a href="#refsECMASCRIPT">[ECMASCRIPT]</a>
+</ol>
+
+
<p>The <dfn id="text-response-entity-body">text response entity body</dfn>
is a string representing the <a href="#response-entity-body">response entity body</a>. The
<a href="#text-response-entity-body">text response entity body</a> is the return value of the
@@ -2432,7 +2447,8 @@
the empty string (default),
"<code title="">arraybuffer</code>",
"<code title="">blob</code>",
- "<code title="">document</code>", and
+ "<code title="">document</code>",
+ "<code title="">json</code>", and
"<code title="">text</code>".</p>
<p>Throws an "<code class="external"><a href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#invalidstateerror">InvalidStateError</a></code>"
exception if the state is
@@ -2473,7 +2489,8 @@
the empty string,
"<code title="">arraybuffer</code>",
"<code title="">blob</code>",
- "<code title="">document</code>", or
+ "<code title="">document</code>",
+ "<code title="">json</code>", or
"<code title="">text</code>"
terminate these steps.</li>
@@ -2542,6 +2559,12 @@
"<code title="">document</code>"</dt>
<dd><p>Return the
<a href="#document-response-entity-body">document response entity body</a>.</dd>
+
+ <dt>If
+ <code title="dom-XMLHttpRequest-responseType"><a href="#dom-xmlhttprequest-responsetype">responseType</a></code> is
+ "<code title="">json</code>"</dt>
+ <dd><p>Return the
+ <a href="#json-response-entity-body">JSON response entity body</a>.</dd>
</dl>
</li>
</ol>
@@ -2771,6 +2794,9 @@
<dt id="refsDOM">[DOM]
<dd><cite><a href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html">DOM4</a></cite>, Anne van Kesteren, Aryeh Gregor and Ms2ger. W3C.
+<dt id="refsECMASCRIPT">[ECMASCRIPT]
+<dd><cite><a href="http://www.ecma-international.org/publications/standards/Ecma-262.htm">ECMAScript Language Specification</a></cite>. ECMA.
+
<dt id="refsFILEAPI">[FILEAPI]
<dd><cite><a href="http://dev.w3.org/2006/webapi/FileAPI/">File API</a></cite>, Arun Ranganathan and Jonas Sicking. W3C.
@@ -2810,11 +2836,8 @@
</dl></div>
-<h3 class="no-num" id="informative-references">Informative references</h3>
-<div id="anolis-references-informative"><dl><dt id="refsECMASCRIPT">[ECMASCRIPT]
-<dd><cite><a href="http://www.ecma-international.org/publications/standards/Ecma-262.htm">ECMAScript Language Specification</a></cite>. ECMA.
-
-</dl></div>
+<!--<h3 class=no-num>Informative references</h3>
+<div id=anolis-references-informative></div>-->
--- a/Overview.src.html Fri Dec 02 13:36:23 2011 +0100
+++ b/Overview.src.html Fri Dec 02 13:57:57 2011 +0100
@@ -2313,6 +2313,22 @@
</ol>
+<p>The <dfn>JSON response entity body</dfn> is an ECMAScript value
+representing the <span>response entity body</span>. The
+<span>JSON response entity body</span> is the return value of the following
+algorithm:</p>
+
+<ol>
+ <li>Let <var title>JSON text</var> be the <span>response entity body</span>
+ decoded using UTF-8.</li>
+
+ <li>Return the result of invoking the <code title>parse</code> function
+ of the <code>JSON</code> object defined in ECMAScript, with
+ <var title>JSON text</var> as its only argument, or null if that function
+ throws an exception. <span data-anolis-ref>ECMASCRIPT</span>
+</ol>
+
+
<p>The <dfn id="text-response-entity-body">text response entity body</dfn>
is a string representing the <span>response entity body</span>. The
<span>text response entity body</span> is the return value of the
@@ -2439,7 +2455,8 @@
the empty string (default),
"<code title>arraybuffer</code>",
"<code title>blob</code>",
- "<code title>document</code>", and
+ "<code title>document</code>",
+ "<code title>json</code>", and
"<code title>text</code>".</p>
<p>Throws an "<code data-anolis-spec=dom>InvalidStateError</code>"
exception if the state is
@@ -2480,7 +2497,8 @@
the empty string,
"<code title>arraybuffer</code>",
"<code title>blob</code>",
- "<code title>document</code>", or
+ "<code title>document</code>",
+ "<code title>json</code>", or
"<code title>text</code>"
terminate these steps.</p></li>
@@ -2549,6 +2567,12 @@
"<code title>document</code>"</dt>
<dd><p>Return the
<span>document response entity body</span>.</p></dd>
+
+ <dt>If
+ <code title="dom-XMLHttpRequest-responseType">responseType</code> is
+ "<code title>json</code>"</dt>
+ <dd><p>Return the
+ <span>JSON response entity body</span>.</p></dd>
</dl>
</li>
</ol>
@@ -2771,8 +2795,8 @@
<h3 class=no-num>Normative references</h3>
<div id=anolis-references-normative></div>
-<h3 class=no-num>Informative references</h3>
-<div id=anolis-references-informative></div>
+<!--<h3 class=no-num>Informative references</h3>
+<div id=anolis-references-informative></div>-->