hixie: Change a number of DOM attributes that historically have been 'long' to 'unsigned long' to make the spec self-consistent about how the corresponding content attributes are parsed. (Browsers are very inconsistent about this today.) (whatwg r3400)

hixie: Change a number of DOM attributes that historically have been
'long' to 'unsigned long' to make the spec self-consistent about how the
corresponding content attributes are parsed. (Browsers are very
inconsistent about this today.) (whatwg r3400)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.2529&r2=1.2530&f=h
http://html5.org/tools/web-apps-tracker?from=3399&to=3400

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.2529
retrieving revision 1.2530
diff -u -d -r1.2529 -r1.2530
--- Overview.html 14 Jul 2009 01:52:41 -0000 1.2529
+++ Overview.html 14 Jul 2009 02:48:21 -0000 1.2530
@@ -4655,8 +4655,8 @@
   absent, then 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-integer">valid integer</a> in base ten and then that string must
-  be used as the new content attribute value.</p>
+  a <a href="#valid-integer">valid integer</a> and then that string must be used as
+  the new content attribute value.</p>
 
   <p>If a reflecting DOM attribute is an <em>unsigned</em> integer
   type (<code>unsigned long</code>) then, on getting, the content
@@ -4668,8 +4668,8 @@
   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> in base ten and then that string must be
-  used as the new content attribute value.</p>
+  non-negative integer</a> and then that string must be used as the
+  new content attribute value.</p>
 
   <p>If a reflecting DOM attribute is an unsigned integer type
   (<code>unsigned long</code>) that is <dfn id="limited-to-only-positive-non-zero-numbers">limited to only positive
@@ -4684,9 +4684,8 @@
   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> in base ten and
-  then that string must be used as the new content attribute
-  value.</p>
+  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>
 
   <p>If a reflecting DOM attribute is a floating point number type
   (<code>float</code>) and it doesn't fall into one of the earlier
@@ -24014,8 +24013,8 @@
   </div><hr><p>The <code><a href="#the-td-element">td</a></code> and <code><a href="#the-th-element">th</a></code> elements implement
   interfaces that inherit from the <code><a href="#htmltablecellelement">HTMLTableCellElement</a></code>
   interface:<pre class="idl">interface <dfn id="htmltablecellelement">HTMLTableCellElement</dfn> : <a href="#htmlelement">HTMLElement</a> {
-           attribute long <a href="#dom-tdth-colspan" title="dom-tdth-colSpan">colSpan</a>;
-           attribute long <a href="#dom-tdth-rowspan" title="dom-tdth-rowSpan">rowSpan</a>;
+           attribute unsigned long <a href="#dom-tdth-colspan" title="dom-tdth-colSpan">colSpan</a>;
+           attribute unsigned long <a href="#dom-tdth-rowspan" title="dom-tdth-rowSpan">rowSpan</a>;
            attribute DOMString <a href="#dom-tdth-headers" title="dom-tdth-headers">headers</a>;
   readonly attribute long <a href="#dom-tdth-cellindex" title="dom-tdth-cellIndex">cellIndex</a>;
 };</pre><dl class="domintro"><dt><var title="">cell</var> . <code title="dom-tdth-cellIndex"><a href="#dom-tdth-cellindex">cellIndex</a></code></dt>
@@ -25658,7 +25657,7 @@
            attribute boolean <a href="#dom-input-indeterminate" title="dom-input-indeterminate">indeterminate</a>;
   readonly attribute <a href="#htmlelement">HTMLElement</a> <a href="#dom-input-list" title="dom-input-list">list</a>;
            attribute DOMString <a href="#dom-input-max" title="dom-input-max">max</a>;
-           attribute long <a href="#dom-input-maxlength" title="dom-input-maxLength">maxLength</a>;
+           attribute unsigned long <a href="#dom-input-maxlength" title="dom-input-maxLength">maxLength</a>;
            attribute DOMString <a href="#dom-input-min" title="dom-input-min">min</a>;
            attribute boolean <a href="#dom-input-multiple" title="dom-input-multiple">multiple</a>;
            attribute DOMString <a href="#dom-fe-name" title="dom-fe-name">name</a>;
@@ -29876,7 +29875,7 @@
   readonly attribute <a href="#htmlformelement">HTMLFormElement</a> <a href="#dom-fae-form" title="dom-fae-form">form</a>;
            attribute boolean <a href="#dom-select-multiple" title="dom-select-multiple">multiple</a>;
            attribute DOMString <a href="#dom-fe-name" title="dom-fe-name">name</a>;
-           attribute long <a href="#dom-select-size" title="dom-select-size">size</a>;
+           attribute unsigned long <a href="#dom-select-size" title="dom-select-size">size</a>;
 
   readonly attribute DOMString <a href="#dom-select-type" title="dom-select-type">type</a>;
 
@@ -30460,7 +30459,7 @@
            attribute unsigned long <a href="#dom-textarea-cols" title="dom-textarea-cols">cols</a>;
            attribute boolean <a href="#dom-fe-disabled" title="dom-fe-disabled">disabled</a>;
   readonly attribute <a href="#htmlformelement">HTMLFormElement</a> <a href="#dom-fae-form" title="dom-fae-form">form</a>;
-           attribute long <a href="#dom-textarea-maxlength" title="dom-textarea-maxLength">maxLength</a>;
+           attribute unsigned long <a href="#dom-textarea-maxlength" title="dom-textarea-maxLength">maxLength</a>;
            attribute DOMString <a href="#dom-fe-name" title="dom-fe-name">name</a>;
            attribute DOMString <a href="#dom-textarea-placeholder" title="dom-textarea-placeholder">placeholder</a>;
            attribute boolean <a href="#dom-textarea-readonly" title="dom-textarea-readOnly">readOnly</a>;
@@ -64099,10 +64098,10 @@
            attribute DOMString <a href="#dom-applet-code" title="dom-applet-code">code</a>;
            attribute DOMString <a href="#dom-applet-codebase" title="dom-applet-codeBase">codeBase</a>;
            attribute DOMString <a href="#dom-applet-height" title="dom-applet-height">height</a>;
-           attribute long <a href="#dom-applet-hspace" title="dom-applet-hspace">hspace</a>;
+           attribute unsigned long <a href="#dom-applet-hspace" title="dom-applet-hspace">hspace</a>;
            attribute DOMString <a href="#dom-applet-name" title="dom-applet-name">name</a>;
            attribute DOMString <a href="#dom-applet-object" title="dom-applet-object">object</a>;
-           attribute long <a href="#dom-applet-vspace" title="dom-applet-vspace">vspace</a>;
+           attribute unsigned long <a href="#dom-applet-vspace" title="dom-applet-vspace">vspace</a>;
            attribute DOMString <a href="#dom-applet-width" title="dom-applet-width">width</a>;
 };</pre>
 
@@ -64699,9 +64698,9 @@
            attribute DOMString <a href="#dom-img-name" title="dom-img-name">name</a>;
            attribute DOMString <a href="#dom-img-align" title="dom-img-align">align</a>;
            attribute DOMString <a href="#dom-img-border" title="dom-img-border">border</a>;
-           attribute long <a href="#dom-img-hspace" title="dom-img-hspace">hspace</a>;
+           attribute unsigned long <a href="#dom-img-hspace" title="dom-img-hspace">hspace</a>;
            attribute DOMString <a href="#dom-img-longdesc" title="dom-img-longDesc">longDesc</a>;
-           attribute long <a href="#dom-img-vspace" title="dom-img-vspace">vspace</a>;
+           attribute unsigned <a href="#dom-img-vspace" title="dom-img-vspace">vspace</a>;
 };</pre>
 
   <p>The <dfn id="dom-img-name" title="dom-img-name"><code>name</code></dfn>, <dfn id="dom-img-align" title="dom-img-align"><code>align</code></dfn>, <dfn id="dom-img-border" title="dom-img-border"><code>border</code></dfn>, <dfn id="dom-img-hspace" title="dom-img-hspace"><code>hspace</code></dfn>, and <dfn id="dom-img-vspace" title="dom-img-vspace"><code>vspace</code></dfn> DOM attributes of
@@ -64777,9 +64776,9 @@
            attribute DOMString <a href="#dom-object-codebase" title="dom-object-codeBase">codeBase</a>;
            attribute DOMString <a href="#dom-object-codetype" title="dom-object-codeType">codeType</a>;
            attribute boolean <a href="#dom-object-declare" title="dom-object-declare">declare</a>;
-           attribute long <a href="#dom-object-hspace" title="dom-object-hspace">hspace</a>;
+           attribute unsigned long <a href="#dom-object-hspace" title="dom-object-hspace">hspace</a>;
            attribute DOMString <a href="#dom-object-standby" title="dom-object-standby">standby</a>;
-           attribute long <a href="#dom-object-vspace" title="dom-object-vspace">vspace</a>;
+           attribute unsigned long <a href="#dom-object-vspace" title="dom-object-vspace">vspace</a>;
 };</pre>
 
   <p>The <dfn id="dom-object-align" title="dom-object-align"><code>align</code></dfn>, <dfn id="dom-object-archive" title="dom-object-archive"><code>archive</code></dfn>, <dfn id="dom-object-border" title="dom-object-border"><code>border</code></dfn>, <dfn id="dom-object-code" title="dom-object-code"><code>code</code></dfn>, <dfn id="dom-object-declare" title="dom-object-declare"><code>declare</code></dfn>, <dfn id="dom-object-hspace" title="dom-object-hspace"><code>hspace</code></dfn>, <dfn id="dom-object-standby" title="dom-object-standby"><code>standby</code></dfn>, and <dfn id="dom-object-vspace" title="dom-object-vspace"><code>vspace</code></dfn> DOM attributes
@@ -64828,7 +64827,7 @@
   <a href="#reflect">reflect</a> the element's <code title="attr-param-valuetype"><a href="#attr-param-valuetype">valuetype</a></code> content attribute.</p>
 
   <hr><pre class="idl">[Supplemental] interface <a href="#htmlpreelement">HTMLPreElement</a> {
-           attribute long <a href="#dom-pre-width" title="dom-pre-width">width</a>;
+           attribute unsigned long <a href="#dom-pre-width" title="dom-pre-width">width</a>;
 };</pre>
 
   <p>The <dfn id="dom-pre-width" title="dom-pre-width"><code>width</code></dfn> DOM

Received on Tuesday, 14 July 2009 02:50:29 UTC