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

hixie: Match reality for reflection of unsigned long IDL attrs. (whatwg r5472)

From: poot <cvsmail@w3.org>
Date: Fri, 24 Sep 2010 09:46:35 +0900 (JST)
To: public-html-diffs@w3.org
Message-Id: <20100924004635.C19452BBE6@toro.w3.mag.keio.ac.jp>
hixie: Match reality for reflection of unsigned long IDL attrs. (whatwg
r5472)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.4363&r2=1.4364&f=h
http://html5.org/tools/web-apps-tracker?from=5471&to=5472

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.4363
retrieving revision 1.4364
diff -u -d -r1.4363 -r1.4364
--- Overview.html	23 Sep 2010 22:44:38 -0000	1.4363
+++ Overview.html	24 Sep 2010 00:46:16 -0000	1.4364
@@ -5806,14 +5806,18 @@
   type (<code>unsigned long</code>) then, on getting, the content
   attribute must 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 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>
+  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 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
+  range is clamped to 2147483647 rather the normal unsigned long
+  maximum value of 4294967295 -->
 
   <p>If a reflecting IDL attribute is an unsigned integer type
   (<code>unsigned long</code>) that is <dfn id="limited-to-only-non-negative-numbers-greater-than-zero">limited to only
@@ -65207,7 +65211,7 @@
    <dt>Change controller:</dt>
    <dd>W3C</dd>
   </dl><p>Fragment identifiers used with <code><a href="#text-html">text/html</a></code> resources
-  refer to <a href="#the-indicated-part-of-the-document">the indicated part of the document</a>.<h3 id="text-html-sandboxed"><span class="secno">12.2 </span><dfn><code>text/html-sandboxed</code></dfn></h3><p class="XXX annotation"><span><a href="http://www.w3.org/html/wg/tracker/issues/110">ISSUE-110</a> (sandbox-type-owner) blocks progress to Last Call</span><p>This registration is for community review and will be submitted
+  refer to <a href="#the-indicated-part-of-the-document">the indicated part of the document</a>.<h3 id="text-html-sandboxed"><span class="secno">12.2 </span><dfn><code>text/html-sandboxed</code></dfn></h3><p>This registration is for community review and will be submitted
   to the IESG for review, approval, and registration with IANA.</p><!--
    To: ietf-types@iana.org
    Subject: Registration of media type text/html-sandboxed
Received on Friday, 24 September 2010 00:47:33 UTC

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