Bug 52520
| Summary: | Number, date and other input elements using up/down control do not support placeholder text | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Adam M-W <adman.com> |
| Component: | Forms | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED WONTFIX | ||
| Severity: | Normal | CC: | adman.com, djlowry, tkent |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | PC | ||
| OS: | Linux | ||
Adam M-W
Number, date and other input elements using up/down control do not support placeholder text
e.g. <input type="date" placeholder="yyyy-mm-dd" /> will not display the placeholder text when it is supposed to.
Standard text fields with type="text", type="tel" and type="email" work correctly.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
David Lowry
Similar problem, related I image.
Mac Snow Leopard / Safari (latest 5.0.5) when you use a number field (html5 input type) with a placeholder value and click the Spinner button, it miscalculates and outputs -1.7976931348623157e+308 (given placeholder of 4).
This did not happen in Mac Chrome latest (as Chrome did not display the placeholder text).
See exact code of the input box here — http://pastie.org/2012693
Kent Tamura
http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#input-type-attr-summary
Some types have no placeholder support according to the standard.
The standard was recently updated so that type=number supported placeholder. So we have added type=number support very recently.