Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use the initial value of JSON.parse https://www.w3.org/Bugs/Public/sh…
- Loading branch information
Showing
2 changed files
with
12 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
|
||
<p><a class="logo" href="//www.whatwg.org/"><img alt="WHATWG" height="100" src="//resources.whatwg.org/logo-xhr.svg" width="100"></a> | ||
<h1 class="head" id="xmlhttprequest-ls">XMLHttpRequest</h1> | ||
<h2 class="no-num no-toc" id="living-standard-—-last-updated-3-september-2013">Living Standard — Last Updated 3 September 2013</h2> | ||
<h2 class="no-num no-toc" id="living-standard-—-last-updated-6-september-2013">Living Standard — Last Updated 6 September 2013</h2> | ||
|
||
<dl> | ||
<dt>This Version: | ||
|
@@ -36,7 +36,7 @@ <h2 class="no-num no-toc" id="living-standard-—-last-updated-3-september-2013" | |
<p class="copyright"><a href="http://creativecommons.org/publicdomain/zero/1.0/" rel="license"><img alt="CC0" src="http://i.creativecommons.org/p/zero/1.0/80x15.png"></a> | ||
To the extent possible under law, the editor has waived all copyright and | ||
related or neighboring rights to this work. In addition, as of | ||
3 September 2013, the editor has made this specification available | ||
6 September 2013, the editor has made this specification available | ||
under the | ||
<a href="http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0" rel="license">Open Web Foundation Agreement Version 1.0</a>, | ||
which is available at | ||
|
@@ -1060,7 +1060,7 @@ <h4 id="the-send()-method"><span class="secno">4.6.6 </span>The <code title="">s | |
throws. | ||
|
||
<p class="XXX">Should we only encode as utf-8? What happens in the face | ||
of an <a class="external" href="http://encoding.spec.whatwg.org/#encoder-error">encoder error</a>? | ||
of an <a class="external" href="http://encoding.spec.whatwg.org/#error">error</a>? | ||
|
||
<p class="note">In particular, if the document cannot be serialized an | ||
"<code class="external"><a href="http://dom.spec.whatwg.org/#invalidstateerror">InvalidStateError</a></code>" exception is | ||
|
@@ -1676,7 +1676,7 @@ <h4 id="the-abort()-method"><span class="secno">4.6.8 </span>The <code title=""> | |
is dispatched. | ||
|
||
<li> | ||
<p>Otherwise run these substeps: | ||
<p>Otherwise, run these substeps: | ||
|
||
<ol> | ||
<li><p>Change the state to <a href="#dom-xmlhttprequest-done" title="dom-XMLHttpRequest-DONE">DONE</a>. | ||
|
@@ -2054,8 +2054,8 @@ <h4 id="response-entity-body-0"><span class="secno">4.7.5 </span>Response entity | |
<a class="external" href="http://encoding.spec.whatwg.org/#utf-8-decode">utf-8 decode</a> on byte stream | ||
<a href="#response-entity-body">response entity body</a>. | ||
|
||
<li><p>Return the result of invoking the <code title="">parse</code> function | ||
of the <code title="">JSON</code> object defined in ECMAScript, with | ||
<li><p>Return the result of invoking the initial value of the <code title="">parse</code> | ||
property of the <code title="">JSON</code> object defined in JavaScript, with | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
annevk
Author
Member
|
||
<var title="">JSON text</var> as its only argument, or null if that function | ||
throws an exception. <a href="#refsECMASCRIPT">[ECMASCRIPT]</a> | ||
</ol> | ||
|
@@ -2780,6 +2780,7 @@ <h2 class="no-num" id="acknowledgments">Acknowledgments</h2> | |
Elliotte Harold, | ||
Eric Lawrence, | ||
Eric Uhrhane, | ||
Erik Arvidsson, | ||
Erik Dahlström, | ||
Feras Moussa, | ||
Geoffrey Sneddon, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In case that helps, for these cases, the ES5 spec writes:
See http://es5.github.io/#x8.10.4 (step 2)