[html5] r5311 - [giow] (1) Make the structured clone algorithm using DATA_CLONE_ERR rather than [...]

whatwg at whatwg.org whatwg at whatwg.org
Tue Aug 17 18:28:03 PDT 2010


Author: ianh
Date: 2010-08-17 18:28:02 -0700 (Tue, 17 Aug 2010)
New Revision: 5311

Modified:
   complete.html
   index
   source
Log:
[giow] (1) Make the structured clone algorithm using DATA_CLONE_ERR rather than NOT_SUPPORTED_ERR, for sicking.
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=10069

Modified: complete.html
===================================================================
--- complete.html	2010-08-18 01:13:20 UTC (rev 5310)
+++ complete.html	2010-08-18 01:28:02 UTC (rev 5311)
@@ -7603,9 +7603,9 @@
 
    <dd>
 
-    <ol><li><p>If <var title="">input</var> is in <var title="">memory</var>, then throw a
-     <code><a href=#not_supported_err>NOT_SUPPORTED_ERR</a></code> exception and abort the overall
-     <a href=#structured-clone>structured clone</a> algorithm.</li>
+    <ol><li><p>If <var title="">input</var> is in <var title="">memory</var>, then throw a <code><a href=#data_clone_err>DATA_CLONE_ERR</a></code>
+     exception and abort the overall <a href=#structured-clone>structured clone</a>
+     algorithm.</li>
 
      <li><p>Otherwise, let <var title="">new memory</var> be a list
      consisting of the items in <var title="">memory</var> with the
@@ -7637,8 +7637,8 @@
    <dt>If <var title="">input</var> is another native object type (e.g. <code>Error</code>)</dt>
    <dt>If <var title="">input</var> is a host object (e.g. a DOM node)</dt>
 
-   <dd><p>Throw a <code><a href=#not_supported_err>NOT_SUPPORTED_ERR</a></code> exception and abort
-   the overall <a href=#structured-clone>structured clone</a> algorithm.</dd>
+   <dd><p>Throw a <code><a href=#data_clone_err>DATA_CLONE_ERR</a></code> exception and abort the
+   overall <a href=#structured-clone>structured clone</a> algorithm.</dd>
 
   </dl></div>
 
@@ -7772,13 +7772,22 @@
    <li value=18><dfn id=security_err><code>SECURITY_ERR</code></dfn></li> <!-- actually in XHR for now -->
    <li value=19><dfn id=network_err><code>NETWORK_ERR</code></dfn></li> <!-- actually in XHR for now -->
    <li value=20><dfn id=abort_err><code>ABORT_ERR</code></dfn></li> <!-- actually in XHR for now -->
-   <li value=21><dfn id=url_mismatch_err><code>URL_MISMATCH_ERR</code></dfn></li> <!-- actually in workers for now -->
+   <li value=21><dfn id=url_mismatch_err><code>URL_MISMATCH_ERR</code></dfn></li> <!-- actually defined right here for now -->
    <li value=22><dfn id=quota_exceeded_err><code>QUOTA_EXCEEDED_ERR</code></dfn></li> <!-- actually defined right here for now -->
-<!--v2DATAGRID   <li value="23"><dfn><code>DATAGRID_MODEL_ERR</code></dfn></li> --> <!-- actually defined right here for now -->
+   <li value=23><dfn id=timeout_err><code>TIMEOUT_ERR</code></dfn></li> <!-- actually in XHR for now -->
+   <li value=24><dfn id=data_clone_err><code>DATA_CLONE_ERR</code></dfn></li> <!-- actually defined right here for now -->
+<!--v2DATAGRID   <li value="24"><dfn><code>DATAGRID_MODEL_ERR</code></dfn></li> --> <!-- actually defined right here for now -->
    <li value=81><dfn id=parse_err><code>PARSE_ERR</code></dfn></li> <!-- actually defined in dom3ls -->
    <li value=82><dfn id=serialize_err><code>SERIALIZE_ERR</code></dfn></li> <!-- actually defined in dom3ls -->
-  </ol><div class=impl>
+  </ol><pre class=impl>[Supplemental] exception DOMException {
+  const unsigned short <a href=#url_mismatch_err>URL_MISMATCH_ERR</a> = 21;
+  const unsigned short <a href=#quota_exceeded_err>QUOTA_EXCEEDED_ERR</a> = 22;
+  const unsigned short <a href=#data_clone_err>DATA_CLONE_ERR</a> = 24;
+};</pre>
 
+
+  <div class=impl>
+
   <h4 id=garbage-collection><span class=secno>2.7.9 </span>Garbage collection</h4>
 
   <p>There is an <dfn id=implied-strong-reference>implied strong reference</dfn> from any IDL

Modified: index
===================================================================
--- index	2010-08-18 01:13:20 UTC (rev 5310)
+++ index	2010-08-18 01:28:02 UTC (rev 5311)
@@ -7527,9 +7527,9 @@
 
    <dd>
 
-    <ol><li><p>If <var title="">input</var> is in <var title="">memory</var>, then throw a
-     <code><a href=#not_supported_err>NOT_SUPPORTED_ERR</a></code> exception and abort the overall
-     <a href=#structured-clone>structured clone</a> algorithm.</li>
+    <ol><li><p>If <var title="">input</var> is in <var title="">memory</var>, then throw a <code><a href=#data_clone_err>DATA_CLONE_ERR</a></code>
+     exception and abort the overall <a href=#structured-clone>structured clone</a>
+     algorithm.</li>
 
      <li><p>Otherwise, let <var title="">new memory</var> be a list
      consisting of the items in <var title="">memory</var> with the
@@ -7561,8 +7561,8 @@
    <dt>If <var title="">input</var> is another native object type (e.g. <code>Error</code>)</dt>
    <dt>If <var title="">input</var> is a host object (e.g. a DOM node)</dt>
 
-   <dd><p>Throw a <code><a href=#not_supported_err>NOT_SUPPORTED_ERR</a></code> exception and abort
-   the overall <a href=#structured-clone>structured clone</a> algorithm.</dd>
+   <dd><p>Throw a <code><a href=#data_clone_err>DATA_CLONE_ERR</a></code> exception and abort the
+   overall <a href=#structured-clone>structured clone</a> algorithm.</dd>
 
   </dl></div>
 
@@ -7696,13 +7696,22 @@
    <li value=18><dfn id=security_err><code>SECURITY_ERR</code></dfn></li> <!-- actually in XHR for now -->
    <li value=19><dfn id=network_err><code>NETWORK_ERR</code></dfn></li> <!-- actually in XHR for now -->
    <li value=20><dfn id=abort_err><code>ABORT_ERR</code></dfn></li> <!-- actually in XHR for now -->
-   <li value=21><dfn id=url_mismatch_err><code>URL_MISMATCH_ERR</code></dfn></li> <!-- actually in workers for now -->
+   <li value=21><dfn id=url_mismatch_err><code>URL_MISMATCH_ERR</code></dfn></li> <!-- actually defined right here for now -->
    <li value=22><dfn id=quota_exceeded_err><code>QUOTA_EXCEEDED_ERR</code></dfn></li> <!-- actually defined right here for now -->
-<!--v2DATAGRID   <li value="23"><dfn><code>DATAGRID_MODEL_ERR</code></dfn></li> --> <!-- actually defined right here for now -->
+   <li value=23><dfn id=timeout_err><code>TIMEOUT_ERR</code></dfn></li> <!-- actually in XHR for now -->
+   <li value=24><dfn id=data_clone_err><code>DATA_CLONE_ERR</code></dfn></li> <!-- actually defined right here for now -->
+<!--v2DATAGRID   <li value="24"><dfn><code>DATAGRID_MODEL_ERR</code></dfn></li> --> <!-- actually defined right here for now -->
    <li value=81><dfn id=parse_err><code>PARSE_ERR</code></dfn></li> <!-- actually defined in dom3ls -->
    <li value=82><dfn id=serialize_err><code>SERIALIZE_ERR</code></dfn></li> <!-- actually defined in dom3ls -->
-  </ol><div class=impl>
+  </ol><pre class=impl>[Supplemental] exception DOMException {
+  const unsigned short <a href=#url_mismatch_err>URL_MISMATCH_ERR</a> = 21;
+  const unsigned short <a href=#quota_exceeded_err>QUOTA_EXCEEDED_ERR</a> = 22;
+  const unsigned short <a href=#data_clone_err>DATA_CLONE_ERR</a> = 24;
+};</pre>
 
+
+  <div class=impl>
+
   <h4 id=garbage-collection><span class=secno>2.7.9 </span>Garbage collection</h4>
 
   <p>There is an <dfn id=implied-strong-reference>implied strong reference</dfn> from any IDL

Modified: source
===================================================================
--- source	2010-08-18 01:13:20 UTC (rev 5310)
+++ source	2010-08-18 01:28:02 UTC (rev 5311)
@@ -7400,9 +7400,9 @@
     <ol>
 
      <li><p>If <var title="">input</var> is in <var
-     title="">memory</var>, then throw a
-     <code>NOT_SUPPORTED_ERR</code> exception and abort the overall
-     <span>structured clone</span> algorithm.</p></li>
+     title="">memory</var>, then throw a <code>DATA_CLONE_ERR</code>
+     exception and abort the overall <span>structured clone</span>
+     algorithm.</p></li>
 
      <li><p>Otherwise, let <var title="">new memory</var> be a list
      consisting of the items in <var title="">memory</var> with the
@@ -7437,8 +7437,8 @@
    <dt>If <var title="">input</var> is another native object type (e.g. <code>Error</code>)</dt>
    <dt>If <var title="">input</var> is a host object (e.g. a DOM node)</dt>
 
-   <dd><p>Throw a <code>NOT_SUPPORTED_ERR</code> exception and abort
-   the overall <span>structured clone</span> algorithm.</p></dd>
+   <dd><p>Throw a <code>DATA_CLONE_ERR</code> exception and abort the
+   overall <span>structured clone</span> algorithm.</p></dd>
 
   </dl>
 
@@ -7582,14 +7582,22 @@
    <li value="18"><dfn><code>SECURITY_ERR</code></dfn></li> <!-- actually in XHR for now -->
    <li value="19"><dfn><code>NETWORK_ERR</code></dfn></li> <!-- actually in XHR for now -->
    <li value="20"><dfn><code>ABORT_ERR</code></dfn></li> <!-- actually in XHR for now -->
-   <li value="21"><dfn><code>URL_MISMATCH_ERR</code></dfn></li> <!-- actually in workers for now -->
+   <li value="21"><dfn><code>URL_MISMATCH_ERR</code></dfn></li> <!-- actually defined right here for now -->
    <li value="22"><dfn><code>QUOTA_EXCEEDED_ERR</code></dfn></li> <!-- actually defined right here for now -->
-<!--v2DATAGRID   <li value="23"><dfn><code>DATAGRID_MODEL_ERR</code></dfn></li> --> <!-- actually defined right here for now -->
+   <li value="23"><dfn><code>TIMEOUT_ERR</code></dfn></li> <!-- actually in XHR for now -->
+   <li value="24"><dfn><code>DATA_CLONE_ERR</code></dfn></li> <!-- actually defined right here for now -->
+<!--v2DATAGRID   <li value="24"><dfn><code>DATAGRID_MODEL_ERR</code></dfn></li> --> <!-- actually defined right here for now -->
    <li value="81"><dfn><code>PARSE_ERR</code></dfn></li> <!-- actually defined in dom3ls -->
    <li value="82"><dfn><code>SERIALIZE_ERR</code></dfn></li> <!-- actually defined in dom3ls -->
   </ol>
 
+  <pre class="impl">[Supplemental] exception DOMException {
+  const unsigned short <span>URL_MISMATCH_ERR</span> = 21;
+  const unsigned short <span>QUOTA_EXCEEDED_ERR</span> = 22;
+  const unsigned short <span>DATA_CLONE_ERR</span> = 24;
+};</pre>
 
+
   <div class="impl">
 
   <h4>Garbage collection</h4>




More information about the Commit-Watchers mailing list