[html5] r3349 - [giow] (2) Indexing an object should return null, not throw an exception, when o [...]

whatwg at whatwg.org whatwg at whatwg.org
Tue Jun 30 21:44:24 PDT 2009


Author: ianh
Date: 2009-06-30 21:44:24 -0700 (Tue, 30 Jun 2009)
New Revision: 3349

Modified:
   source
Log:
[giow] (2) Indexing an object should return null, not throw an exception, when out of range.

Modified: source
===================================================================
--- source	2009-07-01 04:36:17 UTC (rev 3348)
+++ source	2009-07-01 04:44:24 UTC (rev 3349)
@@ -59893,8 +59893,7 @@
   now for clarity, but if people ask, put it back. this is part of the
   spec.]--> If <var title="">n</var> is <!--less than zero or [can't,
   unsigned]--> greater than or equal to the number of key/value pairs
-  in the object, then this method must raise an
-  <code>INDEX_SIZE_ERR</code> exception.</p>
+  in the object, then this method must return null.</p>
 
   <p>The <span>names of the supported named properties</span> on a
   <code>Storage</code> object are the keys of each key/value pair
@@ -61003,8 +61002,7 @@
   <p>The <dfn title="dom-SQLResultSetRowList-item"><code>item(<var
   title="">index</var>)</code></dfn> attribute must return the row
   with the given index <var title="">index</var>. If there is no such
-  row, then the method must raise an <code>INDEX_SIZE_ERR</code>
-  exception.</p>
+  row, then the method must return null.</p>
 
   <p>Each row must be represented by a native ordered dictionary data
   type. In the JavaScript binding, this must be <code>Object</code>.




More information about the Commit-Watchers mailing list