W3C home > Mailing lists > Public > public-html-diffs@w3.org > September 2010

hixie: unsigned long range - extend fix in r5472 to cover also those unsigned long attributes limited to non-zero values. (whatwg r5494)

From: poot <cvsmail@w3.org>
Date: Sun, 26 Sep 2010 03:53:16 +0900 (JST)
To: public-html-diffs@w3.org
Message-Id: <20100925185316.9E01233B4E@toro.w3.mag.keio.ac.jp>
hixie: unsigned long range - extend fix in r5472 to cover also those
unsigned long attributes limited to non-zero values. (whatwg r5494)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.4384&r2=1.4385&f=h
http://html5.org/tools/web-apps-tracker?from=5493&to=5494

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.4384
retrieving revision 1.4385
diff -u -d -r1.4384 -r1.4385
--- Overview.html	25 Sep 2010 18:14:15 -0000	1.4384
+++ Overview.html	25 Sep 2010 18:53:00 -0000	1.4385
@@ -5829,16 +5829,16 @@
   similar to the previous case, but zero is not allowed. On getting,
   the content attribute must first be parsed according to the
   <a href="#rules-for-parsing-non-negative-integers">rules for parsing non-negative integers</a>, and if that is
-  successful, and the value is in the range of the IDL attribute's
-  type, the resulting value must be returned. If, on the other hand,
-  it fails or returns an out of range value, or if the attribute is
+  successful, and the value is in the range 0 to 2147483647 inclusive,
+  the resulting value must be returned. If, on the other hand, it
+  fails or returns an out of range value, or if the attribute is
   absent, the default value must be returned instead, or 1 if there is
   no default value. On setting, if the value is zero, the user agent
   must fire an <code><a href="#index_size_err">INDEX_SIZE_ERR</a></code> exception. Otherwise, the
   given value must be converted to the shortest possible string
   representing the number as a <a href="#valid-non-negative-integer">valid non-negative integer</a>
   and then that string must be used as the new content attribute
-  value.</p>
+  value.</p> <!-- see previous paragraph for note about the range -->
 
   <p>If a reflecting IDL attribute is a floating point number type
   (<code>double</code>), then, on getting, the content attribute must
Received on Saturday, 25 September 2010 18:53:44 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:09:10 UTC