NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 875 - <input type=number placeholder=foo> should validate just fine
<input type=number placeholder=foo> should validate just fine
Status: RESOLVED FIXED
Product: Validator.nu
Classification: Unclassified
Component: HTML parser
HEAD
All All
: P2 major
Assigned To: Michael[tm] Smith
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-11-06 18:36 CET by Jorge Sá Pereira
Modified: 2012-02-07 11:09 CET (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jorge Sá Pereira 2011-11-06 18:36:44 CET
Apparently while validating an HTML5 document, the validator throws an error on the placeholder atribute for the element input. And after that shows the "Attributes for element input" and it is possible to see the placeholder atribute in that list.

Error: Attribute placeholder not allowed on element input at this point.
From line 37, column 1; to line 37, column 129
:</label>↩<input type="number" min="0" max="100" step="0.01" name="imposto" value="21.5" onchange="" class="variable" placeholder="21.5" /> % ↩<b

Attributes for element input:
Global attributes
accept
alt
autocomplete
autofocus
checked
dirname
disabled
form
formaction
formenctype
formmethod
formnovalidate
formtarget
height
list
max
maxlength
min
multiple
name
pattern
placeholder
readonly
required
size
src
step
type
value
width
Comment 1 Mathias Bynens 2012-02-06 15:17:04 CET
The spec used to disallow @placeholder on <input type=number>. This was an error (https://www.w3.org/Bugs/Public/show_bug.cgi?id=12974) and it was rectified later.

This validator.nu issue is probably a remnant of the spec bug.