Bugzilla – Bug 875
<input type=number placeholder=foo> should validate just fine
Last modified: 2012-02-07 11:09:48 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
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.
https://bitbucket.org/validator/syntax/changeset/d8f9f5608b78