[html5] r7288 - [giow] (3) Finish fixing bug 10352. Fixing https://www.w3.org/Bugs/Public/show_b [...]

whatwg at whatwg.org whatwg at whatwg.org
Mon Aug 27 16:00:29 PDT 2012


Author: ianh
Date: 2012-08-27 16:00:27 -0700 (Mon, 27 Aug 2012)
New Revision: 7288

Modified:
   complete.html
   index
   source
Log:
[giow] (3) Finish fixing bug 10352.
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=17705
Affected topics: HTML

Modified: complete.html
===================================================================
--- complete.html	2012-08-27 22:21:43 UTC (rev 7287)
+++ complete.html	2012-08-27 23:00:27 UTC (rev 7288)
@@ -8977,12 +8977,15 @@
   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 0 if there is no default value. On
-  setting, 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>
-  <!-- see http://www.w3.org/Bugs/Public/show_bug.cgi?id=10352 and
-  https://bugzilla.mozilla.org/show_bug.cgi?id=586118 for why the
+  setting, first, if the new value is in the range 0 to 2147483647,
+  then let <var title="">n</var> be the new value, otherwise let <var title="">n</var> be the default value, or 0 if there is no default
+  value; then, <var title="">n</var> 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 that string must be used as the new
+  content attribute value.</p>
+  <!-- see http://www.w3.org/Bugs/Public/show_bug.cgi?id=10352
+  https://bugzilla.mozilla.org/show_bug.cgi?id=586118 and
+  https://www.w3.org/Bugs/Public/show_bug.cgi?id=17705 for why the
   range is clamped to 2147483647 rather the normal unsigned long
   maximum value of 4294967295 -->
 
@@ -8997,11 +9000,14 @@
   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 throw an <code><a href=#indexsizeerror>IndexSizeError</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> <!-- see previous paragraph for note about the range -->
+  must throw an <code><a href=#indexsizeerror>IndexSizeError</a></code> exception. Otherwise,
+  first, if the new value is in the range 1 to 2147483647, then let
+  <var title="">n</var> be the new value, otherwise let <var title="">n</var> be the default value, or 1 if there is no default
+  value; then, <var title="">n</var> 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 that string must be used as the new
+  content attribute value.</p>
+  <!-- see previous paragraph for note about the weird range -->
  
   <p>If a reflecting IDL attribute has a floating-point number type
   (<code>double</code> or <code>unrestricted double</code>), then, on

Modified: index
===================================================================
--- index	2012-08-27 22:21:43 UTC (rev 7287)
+++ index	2012-08-27 23:00:27 UTC (rev 7288)
@@ -8977,12 +8977,15 @@
   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 0 if there is no default value. On
-  setting, 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>
-  <!-- see http://www.w3.org/Bugs/Public/show_bug.cgi?id=10352 and
-  https://bugzilla.mozilla.org/show_bug.cgi?id=586118 for why the
+  setting, first, if the new value is in the range 0 to 2147483647,
+  then let <var title="">n</var> be the new value, otherwise let <var title="">n</var> be the default value, or 0 if there is no default
+  value; then, <var title="">n</var> 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 that string must be used as the new
+  content attribute value.</p>
+  <!-- see http://www.w3.org/Bugs/Public/show_bug.cgi?id=10352
+  https://bugzilla.mozilla.org/show_bug.cgi?id=586118 and
+  https://www.w3.org/Bugs/Public/show_bug.cgi?id=17705 for why the
   range is clamped to 2147483647 rather the normal unsigned long
   maximum value of 4294967295 -->
 
@@ -8997,11 +9000,14 @@
   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 throw an <code><a href=#indexsizeerror>IndexSizeError</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> <!-- see previous paragraph for note about the range -->
+  must throw an <code><a href=#indexsizeerror>IndexSizeError</a></code> exception. Otherwise,
+  first, if the new value is in the range 1 to 2147483647, then let
+  <var title="">n</var> be the new value, otherwise let <var title="">n</var> be the default value, or 1 if there is no default
+  value; then, <var title="">n</var> 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 that string must be used as the new
+  content attribute value.</p>
+  <!-- see previous paragraph for note about the weird range -->
  
   <p>If a reflecting IDL attribute has a floating-point number type
   (<code>double</code> or <code>unrestricted double</code>), then, on

Modified: source
===================================================================
--- source	2012-08-27 22:21:43 UTC (rev 7287)
+++ source	2012-08-27 23:00:27 UTC (rev 7288)
@@ -8977,12 +8977,16 @@
   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 0 if there is no default value. On
-  setting, the given value must be converted to the shortest possible
-  string representing the number as a <span>valid non-negative
-  integer</span> and then that string must be used as the new content
-  attribute value.</p>
-  <!-- see http://www.w3.org/Bugs/Public/show_bug.cgi?id=10352 and
-  https://bugzilla.mozilla.org/show_bug.cgi?id=586118 for why the
+  setting, first, if the new value is in the range 0 to 2147483647,
+  then let <var title="">n</var> be the new value, otherwise let <var
+  title="">n</var> be the default value, or 0 if there is no default
+  value; then, <var title="">n</var> must be converted to the shortest
+  possible string representing the number as a <span>valid
+  non-negative integer</span> and that string must be used as the new
+  content attribute value.</p>
+  <!-- see http://www.w3.org/Bugs/Public/show_bug.cgi?id=10352
+  https://bugzilla.mozilla.org/show_bug.cgi?id=586118 and
+  https://www.w3.org/Bugs/Public/show_bug.cgi?id=17705 for why the
   range is clamped to 2147483647 rather the normal unsigned long
   maximum value of 4294967295 -->
 
@@ -8997,11 +9001,15 @@
   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 throw an <code>IndexSizeError</code> exception. Otherwise, the
-  given value must be converted to the shortest possible string
-  representing the number as a <span>valid non-negative integer</span>
-  and then that string must be used as the new content attribute
-  value.</p> <!-- see previous paragraph for note about the range -->
+  must throw an <code>IndexSizeError</code> exception. Otherwise,
+  first, if the new value is in the range 1 to 2147483647, then let
+  <var title="">n</var> be the new value, otherwise let <var
+  title="">n</var> be the default value, or 1 if there is no default
+  value; then, <var title="">n</var> must be converted to the shortest
+  possible string representing the number as a <span>valid
+  non-negative integer</span> and that string must be used as the new
+  content attribute value.</p>
+  <!-- see previous paragraph for note about the weird range -->
  
   <p>If a reflecting IDL attribute has a floating-point number type
   (<code>double</code> or <code>unrestricted double</code>), then, on




More information about the Commit-Watchers mailing list