[html5] r6283 - [e] (0) explain about json extensibility Fixing http://www.w3.org/Bugs/Public/sh [...]

whatwg at whatwg.org whatwg at whatwg.org
Thu Jul 7 16:32:43 PDT 2011


Author: ianh
Date: 2011-07-07 16:32:41 -0700 (Thu, 07 Jul 2011)
New Revision: 6283

Modified:
   complete.html
   index
   source
Log:
[e] (0) explain about json extensibility
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=12966

Modified: complete.html
===================================================================
--- complete.html	2011-07-07 23:12:00 UTC (rev 6282)
+++ complete.html	2011-07-07 23:32:41 UTC (rev 6283)
@@ -59974,7 +59974,12 @@
    <li><p>Return the result of serializing <var title="">result</var>
    to JSON.</li>
 
-  </ol><p>When the user agent is to <dfn id=get-the-object>get the object</dfn> for an item
+  </ol><p class=note>This algorithm returns an object with a single
+  property that is an array, instead of just returning an array, so
+  that it is possible to extend the algorithm in the future if
+  necessary.</p>
+
+  <p>When the user agent is to <dfn id=get-the-object>get the object</dfn> for an item
   <var title="">item</var>, optionally with a list of elements <var title="">memory</var>, it must run the following substeps:</p>
 
   <ol><li><p>Let <var title="">result</var> be an empty object.</li>

Modified: index
===================================================================
--- index	2011-07-07 23:12:00 UTC (rev 6282)
+++ index	2011-07-07 23:32:41 UTC (rev 6283)
@@ -59846,7 +59846,12 @@
    <li><p>Return the result of serializing <var title="">result</var>
    to JSON.</li>
 
-  </ol><p>When the user agent is to <dfn id=get-the-object>get the object</dfn> for an item
+  </ol><p class=note>This algorithm returns an object with a single
+  property that is an array, instead of just returning an array, so
+  that it is possible to extend the algorithm in the future if
+  necessary.</p>
+
+  <p>When the user agent is to <dfn id=get-the-object>get the object</dfn> for an item
   <var title="">item</var>, optionally with a list of elements <var title="">memory</var>, it must run the following substeps:</p>
 
   <ol><li><p>Let <var title="">result</var> be an empty object.</li>

Modified: source
===================================================================
--- source	2011-07-07 23:12:00 UTC (rev 6282)
+++ source	2011-07-07 23:32:41 UTC (rev 6283)
@@ -68073,6 +68073,11 @@
 
   </ol>
 
+  <p class="note">This algorithm returns an object with a single
+  property that is an array, instead of just returning an array, so
+  that it is possible to extend the algorithm in the future if
+  necessary.</p>
+
   <p>When the user agent is to <dfn>get the object</dfn> for an item
   <var title="">item</var>, optionally with a list of elements <var
   title="">memory</var>, it must run the following substeps:</p>




More information about the Commit-Watchers mailing list