Skip to content

Commit

Permalink
[e] (0) Change 'positive' to 'non-negative' in a few more cases.
Browse files Browse the repository at this point in the history
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=8045

git-svn-id: http://svn.whatwg.org/webapps@4330 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Oct 25, 2009
1 parent 8fdb3c1 commit c30ed8a
Show file tree
Hide file tree
Showing 3 changed files with 88 additions and 82 deletions.
58 changes: 30 additions & 28 deletions complete.html
Original file line number Diff line number Diff line change
Expand Up @@ -5510,7 +5510,7 @@ <h4 id=reflecting-content-attributes-in-idl-attributes><span class=secno>2.7.1 <
the new content attribute value.</p>

<p>If a reflecting IDL attribute is a signed integer type
(<code>long</code>) that is <dfn id=limited-to-only-positive-numbers>limited to only positive
(<code>long</code>) that is <dfn id=limited-to-only-non-negative-numbers>limited to only non-negative
numbers</dfn> 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
Expand Down Expand Up @@ -5538,20 +5538,21 @@ <h4 id=reflecting-content-attributes-in-idl-attributes><span class=secno>2.7.1 <
new content attribute value.</p>

<p>If a reflecting IDL 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
non-zero numbers</dfn>, then the behavior is 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 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>
(<code>unsigned long</code>) that is <dfn id=limited-to-only-non-negative-numbers-greater-than-zero>limited to only
non-negative numbers greater than zero</dfn>, then the behavior is
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
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>

<p>If a reflecting IDL attribute is a floating point number type
(<code>float</code>), then, on getting, the content attribute must
Expand Down Expand Up @@ -29025,8 +29026,8 @@ <h4 id=the-colgroup-element><span class=secno>4.9.3 </span>The <dfn><code>colgro

<p>The <dfn id=dom-colgroup-span title=dom-colgroup-span><code>span</code></dfn> IDL
attribute must <a href=#reflect>reflect</a> the content attribute of the
same name. The value must be <a href=#limited-to-only-positive-non-zero-numbers>limited to only positive non-zero
numbers</a>.</p>
same name. The value must be <a href=#limited-to-only-non-negative-numbers-greater-than-zero>limited to only non-negative
numbers greater than zero</a>.</p>

</div>

Expand Down Expand Up @@ -29067,8 +29068,8 @@ <h4 id=the-col-element><span class=secno>4.9.4 </span>The <dfn><code>col</code><

<p>The <dfn id=dom-col-span title=dom-col-span><code>span</code></dfn> IDL
attribute must <a href=#reflect>reflect</a> the content attribute of the
same name. The value must be <a href=#limited-to-only-positive-non-zero-numbers>limited to only positive non-zero
numbers</a>.</p>
same name. The value must be <a href=#limited-to-only-non-negative-numbers-greater-than-zero>limited to only non-negative
numbers greater than zero</a>.</p>

</div>

Expand Down Expand Up @@ -29596,8 +29597,8 @@ <h4 id=attributes-common-to-td-and-th-elements><span class=secno>4.9.11 </span>A

<p>The <dfn id=dom-tdth-colspan title=dom-tdth-colSpan><code>colSpan</code></dfn> IDL
attribute must <a href=#reflect>reflect</a> the content attribute of the
same name. The value must be <a href=#limited-to-only-positive-non-zero-numbers>limited to only positive non-zero
numbers</a>.</p>
same name. The value must be <a href=#limited-to-only-non-negative-numbers-greater-than-zero>limited to only non-negative
numbers greater than zero</a>.</p>

<p>The <dfn id=dom-tdth-rowspan title=dom-tdth-rowSpan><code>rowSpan</code></dfn> IDL
attribute must <a href=#reflect>reflect</a> the content attribute of the
Expand Down Expand Up @@ -32778,7 +32779,7 @@ <h4 id=the-input-element><span class=secno>4.10.5 </span>The <dfn><code>input</c
<a href=#reflect>reflect</a> the respective content attributes of the same
name. The <dfn id=dom-input-maxlength title=dom-input-maxLength><code>maxLength</code></dfn> IDL
attribute must <a href=#reflect>reflect</a> the <code title=attr-input-maxlength><a href=#attr-input-maxlength>maxlength</a></code> content attribute,
<a href=#limited-to-only-positive-numbers>limited to only positive numbers</a>. The <dfn id=dom-input-readonly title=dom-input-readOnly><code>readOnly</code></dfn> IDL attribute
<a href=#limited-to-only-non-negative-numbers>limited to only non-negative numbers</a>. The <dfn id=dom-input-readonly title=dom-input-readOnly><code>readOnly</code></dfn> IDL attribute
must <a href=#reflect>reflect</a> the <code title=attr-input-readonly><a href=#attr-input-readonly>readonly</a></code> content attribute. The
<dfn id=dom-input-defaultchecked title=dom-input-defaultChecked><code>defaultChecked</code></dfn>
IDL attribute must <a href=#reflect>reflect</a> the <code title=attr-input-checked><a href=#attr-input-checked>checked</a></code> content attribute. The
Expand Down Expand Up @@ -35831,7 +35832,8 @@ <h6 id=the-size-attribute><span class=secno>4.10.5.2.4 </span>The <code title=at
ensure that at least that many characters are visible.</p>

<p>The <code title=dom-input-size><a href=#dom-input-size>size</a></code> IDL attribute is
<a href=#limited-to-only-positive-non-zero-numbers>limited to only positive non-zero numbers</a>.</p>
<a href=#limited-to-only-non-negative-numbers-greater-than-zero>limited to only non-negative numbers greater than
zero</a>.</p>

</div>

Expand Down Expand Up @@ -37049,8 +37051,8 @@ <h4 id=the-select-element><span class=secno>4.10.7 </span>The <dfn><code>select<
<p>The <dfn id=dom-select-multiple title=dom-select-multiple><code>multiple</code></dfn>
and <dfn id=dom-select-size title=dom-select-size><code>size</code></dfn> IDL
attributes must <a href=#reflect>reflect</a> the respective content
attributes of the same name. The <code title=dom-select-size><a href=#dom-select-size>size</a></code> IDL attribute <a href=#limited-to-only-positive-non-zero-numbers>limited to
only positive non-zero numbers</a>.</p>
attributes of the same name. The <code title=dom-select-size><a href=#dom-select-size>size</a></code> IDL attribute <a href=#limited-to-only-non-negative-numbers-greater-than-zero>limited to
only non-negative numbers greater than zero</a>.</p>

<p>The <code title=dom-cva-willValidate><a href=#dom-cva-willvalidate>willValidate</a></code>, <code title=dom-cva-validity><a href=#dom-cva-validity>validity</a></code>, and <code title=dom-cva-validationMessage><a href=#dom-cva-validationmessage>validationMessage</a></code>
attributes, and the <code title=dom-cva-checkValidatity><a href=#dom-cva-checkvalidatity>checkValidity()</a></code> and <code title=dom-cva-setCustomValidity><a href=#dom-cva-setcustomvalidity>setCustomValidity()</a></code>
Expand Down Expand Up @@ -37718,10 +37720,10 @@ <h4 id=the-textarea-element><span class=secno>4.10.11 </span>The <dfn><code>text
<p>The <dfn id=dom-textarea-cols title=dom-textarea-cols><code>cols</code></dfn>, <dfn id=dom-textarea-placeholder title=dom-textarea-placeholder><code>placeholder</code></dfn>,
<dfn id=dom-textarea-required title=dom-textarea-required><code>required</code></dfn>, <dfn id=dom-textarea-rows title=dom-textarea-rows><code>rows</code></dfn>, and <dfn id=dom-textarea-wrap title=dom-textarea-wrap><code>wrap</code></dfn> attributes must
<a href=#reflect>reflect</a> the respective content attributes of the same
name. The <code title=dom-textarea-cols><a href=#dom-textarea-cols>cols</a></code> and <code title=dom-textarea-rows><a href=#dom-textarea-rows>rows</a></code> attributes are <a href=#limited-to-only-positive-non-zero-numbers>limited
to only positive non-zero numbers</a>. The <dfn id=dom-textarea-maxlength title=dom-textarea-maxLength><code>maxLength</code></dfn> IDL
name. The <code title=dom-textarea-cols><a href=#dom-textarea-cols>cols</a></code> and <code title=dom-textarea-rows><a href=#dom-textarea-rows>rows</a></code> attributes are <a href=#limited-to-only-non-negative-numbers-greater-than-zero>limited
to only non-negative numbers greater than zero</a>. The <dfn id=dom-textarea-maxlength title=dom-textarea-maxLength><code>maxLength</code></dfn> IDL
attribute must <a href=#reflect>reflect</a> the <code title=attr-textarea-maxlength><a href=#attr-textarea-maxlength>maxlength</a></code> content attribute,
<a href=#limited-to-only-positive-numbers>limited to only positive numbers</a>. The <dfn id=dom-textarea-readonly title=dom-textarea-readOnly><code>readOnly</code></dfn> IDL
<a href=#limited-to-only-non-negative-numbers>limited to only non-negative numbers</a>. The <dfn id=dom-textarea-readonly title=dom-textarea-readOnly><code>readOnly</code></dfn> IDL
attribute must <a href=#reflect>reflect</a> the <code title=attr-textarea-readonly><a href=#attr-textarea-readonly>readonly</a></code> content
attribute.</p>

Expand Down
58 changes: 30 additions & 28 deletions index
Original file line number Diff line number Diff line change
Expand Up @@ -5320,7 +5320,7 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d
the new content attribute value.</p>

<p>If a reflecting IDL attribute is a signed integer type
(<code>long</code>) that is <dfn id=limited-to-only-positive-numbers>limited to only positive
(<code>long</code>) that is <dfn id=limited-to-only-non-negative-numbers>limited to only non-negative
numbers</dfn> 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
Expand Down Expand Up @@ -5348,20 +5348,21 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d
new content attribute value.</p>

<p>If a reflecting IDL 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
non-zero numbers</dfn>, then the behavior is 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 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>
(<code>unsigned long</code>) that is <dfn id=limited-to-only-non-negative-numbers-greater-than-zero>limited to only
non-negative numbers greater than zero</dfn>, then the behavior is
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
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>

<p>If a reflecting IDL attribute is a floating point number type
(<code>float</code>), then, on getting, the content attribute must
Expand Down Expand Up @@ -28835,8 +28836,8 @@ the cell that corresponds to the values of the two dice.

<p>The <dfn id=dom-colgroup-span title=dom-colgroup-span><code>span</code></dfn> IDL
attribute must <a href=#reflect>reflect</a> the content attribute of the
same name. The value must be <a href=#limited-to-only-positive-non-zero-numbers>limited to only positive non-zero
numbers</a>.</p>
same name. The value must be <a href=#limited-to-only-non-negative-numbers-greater-than-zero>limited to only non-negative
numbers greater than zero</a>.</p>

</div>

Expand Down Expand Up @@ -28877,8 +28878,8 @@ the cell that corresponds to the values of the two dice.

<p>The <dfn id=dom-col-span title=dom-col-span><code>span</code></dfn> IDL
attribute must <a href=#reflect>reflect</a> the content attribute of the
same name. The value must be <a href=#limited-to-only-positive-non-zero-numbers>limited to only positive non-zero
numbers</a>.</p>
same name. The value must be <a href=#limited-to-only-non-negative-numbers-greater-than-zero>limited to only non-negative
numbers greater than zero</a>.</p>

</div>

Expand Down Expand Up @@ -29406,8 +29407,8 @@ the cell that corresponds to the values of the two dice.

<p>The <dfn id=dom-tdth-colspan title=dom-tdth-colSpan><code>colSpan</code></dfn> IDL
attribute must <a href=#reflect>reflect</a> the content attribute of the
same name. The value must be <a href=#limited-to-only-positive-non-zero-numbers>limited to only positive non-zero
numbers</a>.</p>
same name. The value must be <a href=#limited-to-only-non-negative-numbers-greater-than-zero>limited to only non-negative
numbers greater than zero</a>.</p>

<p>The <dfn id=dom-tdth-rowspan title=dom-tdth-rowSpan><code>rowSpan</code></dfn> IDL
attribute must <a href=#reflect>reflect</a> the content attribute of the
Expand Down Expand Up @@ -32588,7 +32589,7 @@ interface <dfn id=htmlformelement>HTMLFormElement</dfn> : <a href=#htmlelement>H
<a href=#reflect>reflect</a> the respective content attributes of the same
name. The <dfn id=dom-input-maxlength title=dom-input-maxLength><code>maxLength</code></dfn> IDL
attribute must <a href=#reflect>reflect</a> the <code title=attr-input-maxlength><a href=#attr-input-maxlength>maxlength</a></code> content attribute,
<a href=#limited-to-only-positive-numbers>limited to only positive numbers</a>. The <dfn id=dom-input-readonly title=dom-input-readOnly><code>readOnly</code></dfn> IDL attribute
<a href=#limited-to-only-non-negative-numbers>limited to only non-negative numbers</a>. The <dfn id=dom-input-readonly title=dom-input-readOnly><code>readOnly</code></dfn> IDL attribute
must <a href=#reflect>reflect</a> the <code title=attr-input-readonly><a href=#attr-input-readonly>readonly</a></code> content attribute. The
<dfn id=dom-input-defaultchecked title=dom-input-defaultChecked><code>defaultChecked</code></dfn>
IDL attribute must <a href=#reflect>reflect</a> the <code title=attr-input-checked><a href=#attr-input-checked>checked</a></code> content attribute. The
Expand Down Expand Up @@ -35641,7 +35642,8 @@ interface <dfn id=htmlformelement>HTMLFormElement</dfn> : <a href=#htmlelement>H
ensure that at least that many characters are visible.</p>

<p>The <code title=dom-input-size><a href=#dom-input-size>size</a></code> IDL attribute is
<a href=#limited-to-only-positive-non-zero-numbers>limited to only positive non-zero numbers</a>.</p>
<a href=#limited-to-only-non-negative-numbers-greater-than-zero>limited to only non-negative numbers greater than
zero</a>.</p>

</div>

Expand Down Expand Up @@ -36859,8 +36861,8 @@ You cannot complete this form until the field is correct.</samp></pre>
<p>The <dfn id=dom-select-multiple title=dom-select-multiple><code>multiple</code></dfn>
and <dfn id=dom-select-size title=dom-select-size><code>size</code></dfn> IDL
attributes must <a href=#reflect>reflect</a> the respective content
attributes of the same name. The <code title=dom-select-size><a href=#dom-select-size>size</a></code> IDL attribute <a href=#limited-to-only-positive-non-zero-numbers>limited to
only positive non-zero numbers</a>.</p>
attributes of the same name. The <code title=dom-select-size><a href=#dom-select-size>size</a></code> IDL attribute <a href=#limited-to-only-non-negative-numbers-greater-than-zero>limited to
only non-negative numbers greater than zero</a>.</p>

<p>The <code title=dom-cva-willValidate><a href=#dom-cva-willvalidate>willValidate</a></code>, <code title=dom-cva-validity><a href=#dom-cva-validity>validity</a></code>, and <code title=dom-cva-validationMessage><a href=#dom-cva-validationmessage>validationMessage</a></code>
attributes, and the <code title=dom-cva-checkValidatity><a href=#dom-cva-checkvalidatity>checkValidity()</a></code> and <code title=dom-cva-setCustomValidity><a href=#dom-cva-setcustomvalidity>setCustomValidity()</a></code>
Expand Down Expand Up @@ -37528,10 +37530,10 @@ interface <dfn id=htmloptionelement>HTMLOptionElement</dfn> : <a href=#htmleleme
<p>The <dfn id=dom-textarea-cols title=dom-textarea-cols><code>cols</code></dfn>, <dfn id=dom-textarea-placeholder title=dom-textarea-placeholder><code>placeholder</code></dfn>,
<dfn id=dom-textarea-required title=dom-textarea-required><code>required</code></dfn>, <dfn id=dom-textarea-rows title=dom-textarea-rows><code>rows</code></dfn>, and <dfn id=dom-textarea-wrap title=dom-textarea-wrap><code>wrap</code></dfn> attributes must
<a href=#reflect>reflect</a> the respective content attributes of the same
name. The <code title=dom-textarea-cols><a href=#dom-textarea-cols>cols</a></code> and <code title=dom-textarea-rows><a href=#dom-textarea-rows>rows</a></code> attributes are <a href=#limited-to-only-positive-non-zero-numbers>limited
to only positive non-zero numbers</a>. The <dfn id=dom-textarea-maxlength title=dom-textarea-maxLength><code>maxLength</code></dfn> IDL
name. The <code title=dom-textarea-cols><a href=#dom-textarea-cols>cols</a></code> and <code title=dom-textarea-rows><a href=#dom-textarea-rows>rows</a></code> attributes are <a href=#limited-to-only-non-negative-numbers-greater-than-zero>limited
to only non-negative numbers greater than zero</a>. The <dfn id=dom-textarea-maxlength title=dom-textarea-maxLength><code>maxLength</code></dfn> IDL
attribute must <a href=#reflect>reflect</a> the <code title=attr-textarea-maxlength><a href=#attr-textarea-maxlength>maxlength</a></code> content attribute,
<a href=#limited-to-only-positive-numbers>limited to only positive numbers</a>. The <dfn id=dom-textarea-readonly title=dom-textarea-readOnly><code>readOnly</code></dfn> IDL
<a href=#limited-to-only-non-negative-numbers>limited to only non-negative numbers</a>. The <dfn id=dom-textarea-readonly title=dom-textarea-readOnly><code>readOnly</code></dfn> IDL
attribute must <a href=#reflect>reflect</a> the <code title=attr-textarea-readonly><a href=#attr-textarea-readonly>readonly</a></code> content
attribute.</p>

Expand Down
Loading

0 comments on commit c30ed8a

Please sign in to comment.