Short URL: http://html5.org/r/3934
| SVN | Bug | Comment | Time (UTC) |
|---|---|---|---|
| 3934 | 7427 | 2009-09-21 23:12 |
Index: source
===================================================================
--- source (revision 3933)
+++ source (revision 3934)
@@ -4993,6 +4993,21 @@
a <span>valid integer</span> and then that string must be used as
the new content attribute value.</p>
+ <p>If a reflecting IDL attribute is a signed integer type
+ (<code>long</code>) that is <dfn>limited to only positive
+ numbers</dfn> then, on getting, the content attribute must be parsed
+ according to the <span>rules for parsing non-negative
+ integers</span>, 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 −1 if there is no default value. On
+ setting, if the value is negative, the user agent must fire an
+ <code>INDEX_SIZE_ERR</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>
+
<p>If a reflecting IDL attribute is an <em>unsigned</em> integer
type (<code>unsigned long</code>) then, on getting, the content
attribute must be parsed according to the <span>rules for parsing
@@ -34301,7 +34316,7 @@
attribute boolean <span title="dom-input-indeterminate">indeterminate</span>;
readonly attribute <span>HTMLElement</span> <span title="dom-input-list">list</span>;
attribute DOMString <span title="dom-input-max">max</span>;
- attribute unsigned long <span title="dom-input-maxLength">maxLength</span>;
+ attribute long <span title="dom-input-maxLength">maxLength</span>;
attribute DOMString <span title="dom-input-min">min</span>;
attribute boolean <span title="dom-input-multiple">multiple</span>;
attribute DOMString <span title="dom-fe-name">name</span>;
@@ -35651,9 +35666,10 @@
name. The <dfn
title="dom-input-maxLength"><code>maxLength</code></dfn> IDL
attribute must <span>reflect</span> the <code
- title="attr-input-maxlength">maxlength</code> content attribute. The
- <dfn title="dom-input-readOnly"><code>readOnly</code></dfn> IDL
- attribute must <span>reflect</span> the <code
+ title="attr-input-maxlength">maxlength</code> content attribute,
+ <span>limited to only positive numbers</span>. The <dfn
+ title="dom-input-readOnly"><code>readOnly</code></dfn> IDL attribute
+ must <span>reflect</span> the <code
title="attr-input-readonly">readonly</code> content attribute. The
<dfn
title="dom-input-defaultChecked"><code>defaultChecked</code></dfn>
@@ -41025,7 +41041,7 @@
attribute unsigned long <span title="dom-textarea-cols">cols</span>;
attribute boolean <span title="dom-fe-disabled">disabled</span>;
readonly attribute <span>HTMLFormElement</span> <span title="dom-fae-form">form</span>;
- attribute unsigned long <span title="dom-textarea-maxLength">maxLength</span>;
+ attribute long <span title="dom-textarea-maxLength">maxLength</span>;
attribute DOMString <span title="dom-fe-name">name</span>;
attribute DOMString <span title="dom-textarea-placeholder">placeholder</span>;
attribute boolean <span title="dom-textarea-readOnly">readOnly</span>;
@@ -41319,9 +41335,10 @@
to only positive non-zero numbers</span>. The <dfn
title="dom-textarea-maxLength"><code>maxLength</code></dfn> IDL
attribute must <span>reflect</span> the <code
- title="attr-textarea-maxlength">maxlength</code> content attribute.
- The <dfn title="dom-textarea-readOnly"><code>readOnly</code></dfn>
- IDL attribute must <span>reflect</span> the <code
+ title="attr-textarea-maxlength">maxlength</code> content attribute,
+ <span>limited to only positive numbers</span>. The <dfn
+ title="dom-textarea-readOnly"><code>readOnly</code></dfn> IDL
+ attribute must <span>reflect</span> the <code
title="attr-textarea-readonly">readonly</code> content
attribute.</p>