[html5] r1213 - /

whatwg at whatwg.org whatwg at whatwg.org
Mon Feb 11 17:06:24 PST 2008


Author: ianh
Date: 2008-02-11 17:06:23 -0800 (Mon, 11 Feb 2008)
New Revision: 1213

Modified:
   index
   source
Log:
[g] (2) make setItem() go back to raising an exception.

Modified: index
===================================================================
--- index	2008-02-11 09:11:22 UTC (rev 1212)
+++ index	2008-02-12 01:06:23 UTC (rev 1213)
@@ -24,7 +24,7 @@
 
    <h1 id=html-5>HTML 5</h1>
 
-   <h2 class="no-num no-toc" id=working>Working Draft — 11 February
+   <h2 class="no-num no-toc" id=working>Working Draft — 12 February
     2008</h2>
 
    <p>You can take part in this work. <a
@@ -30282,7 +30282,7 @@
   readonly attribute unsigned long <a href="#length8" title=dom-Storage-length>length</a>;
   DOMString <a href="#keyn" title=dom-Storage-key>key</a>(in unsigned long index);
   DOMString <a href="#getitem" title=dom-Storage-getItem>getItem</a>(in DOMString key);
-  boolean <a href="#setitem" title=dom-Storage-setItem>setItem</a>(in DOMString key, in DOMString data);
+  void <a href="#setitem" title=dom-Storage-setItem>setItem</a>(in DOMString key, in DOMString data);
   void <a href="#removeitem" title=dom-Storage-removeItem>removeItem</a>(in DOMString key);
 };</pre>
   <!-- XXX v2 ideas:
@@ -30349,9 +30349,10 @@
    then it must have its value updated to the value given in the <var
    title="">value</var> argument.
 
-  <p>The method must return true if setting the value was successful, and
-   false otherwise. (Setting could fail if, e.g., the user has disabled
-   storage for the domain, or if the quota has been exceeded.)
+  <p>If it couldn't set the new value, the method must raise an
+   <code>INVALID_ACCESS_ERR</code> exception. (Setting could fail if, e.g.,
+   the user has disabled storage for the domain, or if the quota has been
+   exceeded.)
 
   <p>When the <code title=dom-Storage-setItem><a
    href="#setitem">setItem()</a></code> method is invoked, events are fired
@@ -30597,7 +30598,7 @@
 
   <p>If the storage area space limit is reached during a <code
    title=dom-Storage-setItem><a href="#setitem">setItem()</a></code> call,
-   the method will return false.
+   the method will raise an exception.
 
   <p>A mostly arbitrary limit of five megabytes per domain is recommended.
    Implementation feedback is welcome and will be used to update this

Modified: source
===================================================================
--- source	2008-02-11 09:11:22 UTC (rev 1212)
+++ source	2008-02-12 01:06:23 UTC (rev 1213)
@@ -27764,7 +27764,7 @@
   readonly attribute unsigned long <span title="dom-Storage-length">length</span>;
   DOMString <span title="dom-Storage-key">key</span>(in unsigned long index);
   DOMString <span title="dom-Storage-getItem">getItem</span>(in DOMString key);
-  boolean <span title="dom-Storage-setItem">setItem</span>(in DOMString key, in DOMString data);
+  void <span title="dom-Storage-setItem">setItem</span>(in DOMString key, in DOMString data);
   void <span title="dom-Storage-removeItem">removeItem</span>(in DOMString key);
 };</pre>
 
@@ -27832,10 +27832,10 @@
   list, then it must have its value updated to the value given in the
   <var title="">value</var> argument.</p>
 
-  <p>The method must return true if setting the value was successful,
-  and false otherwise. (Setting could fail if, e.g., the user has
-  disabled storage for the domain, or if the quota has been
-  exceeded.)</p>
+  <p>If it couldn't set the new value, the method must raise an
+  <code>INVALID_ACCESS_ERR</code> exception. (Setting could fail if,
+  e.g., the user has disabled storage for the domain, or if the quota
+  has been exceeded.)</p>
 
   <p>When the <code title="dom-Storage-setItem">setItem()</code>
   method is invoked, events are fired on other
@@ -28070,7 +28070,7 @@
 
   <p>If the storage area space limit is reached during a <code
   title="dom-Storage-setItem">setItem()</code> call, the method will
-  return false.</p>
+  raise an exception.</p>
 
   <p>A mostly arbitrary limit of five megabytes per domain is
   recommended. Implementation feedback is welcome and will be used to




More information about the Commit-Watchers mailing list