Skip to content

Commit

Permalink
[c] (0) Make size and maxlength conforming on type=number for now. (f…
Browse files Browse the repository at this point in the history
…ixing r6413 better)

Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=12781

git-svn-id: http://svn.whatwg.org/webapps@6565 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Sep 22, 2011
1 parent cf59a30 commit b986829
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 25 deletions.
20 changes: 13 additions & 7 deletions complete.html
Expand Up @@ -95177,11 +95177,14 @@ <h3 id=obsolete-but-conforming-features><span class=secno>16.1 </span>Obsolete b
attribute should be used instead.</p>

<!-- remove this once type=number is widely supported -->
<p>Authors should not specify the <code title=attr-input-maxlength><a href=#attr-input-maxlength>maxlength</a></code> attribute on
<code><a href=#the-input-element>input</a></code> elements whose <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute is in the <a href=#number-state title=attr-input-type-number>Number</a> state. One valid reason
for using the attribute regardless is to help legacy user agents
that do not support <code><a href=#the-input-element>input</a></code> elements with <code title="">type="number"</code> to still render the text field with a
useful width.</p>
<p>Authors should not, but may despite requirements to the contrary
elsewhere in this specification, specify the <code title=attr-input-maxlength><a href=#attr-input-maxlength>maxlength</a></code> and <code title=attr-input-size><a href=#attr-input-size>size</a></code> attributes on <code><a href=#the-input-element>input</a></code>
elements whose <code title=attr-input-type><a href=#attr-input-type>type</a></code> attributes
are in the <a href=#number-state title=attr-input-type-number>Number</a> state.
One valid reason for using these attributes regardless is to help
legacy user agents that do not support <code><a href=#the-input-element>input</a></code> elements
with <code title="">type="number"</code> to still render the text
field with a useful width.</p>

<p class=note>In <a href=#syntax>the HTML syntax</a>, specifying a <a href=#syntax-doctype title=syntax-DOCTYPE>DOCTYPE</a> that is an <a href=#obsolete-permitted-doctype>obsolete
permitted DOCTYPE</a> will also trigger a warning.</p>
Expand Down Expand Up @@ -95220,8 +95223,11 @@ <h4 id=warnings-for-obsolete-but-conforming-features><span class=secno>16.1.1 </
attribute on an <code><a href=#the-a-element>a</a></code> element, if its value is not the
empty string.</li>

<li><p>The presence of a <code title=attr-input-maxlength><a href=#attr-input-maxlength>maxlength</a></code> attribute on
an <code><a href=#the-input-element>input</a></code> element whose <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute is in the <a href=#number-state title=attr-input-type-number>Number</a> state.</li>
<li><p>The presence of a <code title=attr-input-maxlength><a href=#attr-input-maxlength>maxlength</a></code> attribute on an
<code><a href=#the-input-element>input</a></code> element whose <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute is in the <a href=#number-state title=attr-input-type-number>Number</a> state.</li>

<li><p>The presence of a <code title=attr-input-size><a href=#attr-input-size>size</a></code> attribute on an
<code><a href=#the-input-element>input</a></code> element whose <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute is in the <a href=#number-state title=attr-input-type-number>Number</a> state.</li>

</ul><p>Conformance checkers must distinguish between pages that have no
conformance errors and have none of these obsolete features, and
Expand Down
20 changes: 13 additions & 7 deletions index
Expand Up @@ -90602,11 +90602,14 @@ if (s = prompt('What is your name?')) {
attribute should be used instead.</p>

<!-- remove this once type=number is widely supported -->
<p>Authors should not specify the <code title=attr-input-maxlength><a href=#attr-input-maxlength>maxlength</a></code> attribute on
<code><a href=#the-input-element>input</a></code> elements whose <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute is in the <a href=#number-state title=attr-input-type-number>Number</a> state. One valid reason
for using the attribute regardless is to help legacy user agents
that do not support <code><a href=#the-input-element>input</a></code> elements with <code title="">type="number"</code> to still render the text field with a
useful width.</p>
<p>Authors should not, but may despite requirements to the contrary
elsewhere in this specification, specify the <code title=attr-input-maxlength><a href=#attr-input-maxlength>maxlength</a></code> and <code title=attr-input-size><a href=#attr-input-size>size</a></code> attributes on <code><a href=#the-input-element>input</a></code>
elements whose <code title=attr-input-type><a href=#attr-input-type>type</a></code> attributes
are in the <a href=#number-state title=attr-input-type-number>Number</a> state.
One valid reason for using these attributes regardless is to help
legacy user agents that do not support <code><a href=#the-input-element>input</a></code> elements
with <code title="">type="number"</code> to still render the text
field with a useful width.</p>

<p class=note>In <a href=#syntax>the HTML syntax</a>, specifying a <a href=#syntax-doctype title=syntax-DOCTYPE>DOCTYPE</a> that is an <a href=#obsolete-permitted-doctype>obsolete
permitted DOCTYPE</a> will also trigger a warning.</p>
Expand Down Expand Up @@ -90645,8 +90648,11 @@ if (s = prompt('What is your name?')) {
attribute on an <code><a href=#the-a-element>a</a></code> element, if its value is not the
empty string.</li>

<li><p>The presence of a <code title=attr-input-maxlength><a href=#attr-input-maxlength>maxlength</a></code> attribute on
an <code><a href=#the-input-element>input</a></code> element whose <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute is in the <a href=#number-state title=attr-input-type-number>Number</a> state.</li>
<li><p>The presence of a <code title=attr-input-maxlength><a href=#attr-input-maxlength>maxlength</a></code> attribute on an
<code><a href=#the-input-element>input</a></code> element whose <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute is in the <a href=#number-state title=attr-input-type-number>Number</a> state.</li>

<li><p>The presence of a <code title=attr-input-size><a href=#attr-input-size>size</a></code> attribute on an
<code><a href=#the-input-element>input</a></code> element whose <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute is in the <a href=#number-state title=attr-input-type-number>Number</a> state.</li>

</ul><p>Conformance checkers must distinguish between pages that have no
conformance errors and have none of these obsolete features, and
Expand Down
29 changes: 18 additions & 11 deletions source
Expand Up @@ -107875,15 +107875,16 @@ if (s = prompt('What is your name?')) {
attribute should be used instead.</p>

<!-- remove this once type=number is widely supported -->
<p>Authors should not specify the <code
title="attr-input-maxlength">maxlength</code> attribute on
<code>input</code> elements whose <code
title="attr-input-type">type</code> attribute is in the <span
title="attr-input-type-number">Number</span> state. One valid reason
for using the attribute regardless is to help legacy user agents
that do not support <code>input</code> elements with <code
title="">type="number"</code> to still render the text field with a
useful width.</p>
<p>Authors should not, but may despite requirements to the contrary
elsewhere in this specification, specify the <code
title="attr-input-maxlength">maxlength</code> and <code
title="attr-input-size">size</code> attributes on <code>input</code>
elements whose <code title="attr-input-type">type</code> attributes
are in the <span title="attr-input-type-number">Number</span> state.
One valid reason for using these attributes regardless is to help
legacy user agents that do not support <code>input</code> elements
with <code title="">type="number"</code> to still render the text
field with a useful width.</p>

<p class="note">In <span>the HTML syntax</span>, specifying a <span
title="syntax-DOCTYPE">DOCTYPE</span> that is an <span>obsolete
Expand Down Expand Up @@ -107931,8 +107932,14 @@ if (s = prompt('What is your name?')) {
empty string.</p></li>

<li><p>The presence of a <code
title="attr-input-maxlength">maxlength</code> attribute on
an <code>input</code> element whose <code
title="attr-input-maxlength">maxlength</code> attribute on an
<code>input</code> element whose <code
title="attr-input-type">type</code> attribute is in the <span
title="attr-input-type-number">Number</span> state.</p></li>

<li><p>The presence of a <code
title="attr-input-size">size</code> attribute on an
<code>input</code> element whose <code
title="attr-input-type">type</code> attribute is in the <span
title="attr-input-type-number">Number</span> state.</p></li>

Expand Down

0 comments on commit b986829

Please sign in to comment.