| Summary: | REGRESSION (r172826) Password field placeholder text is missing | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Jon Honeycutt <jhoneycutt> | ||||
| Component: | Forms | Assignee: | Jon Honeycutt <jhoneycutt> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | benjamin, cdumez | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | 528+ (Nightly build) | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| URL: | data:text/html,<input placeholder="Password" type="password"> | ||||||
| Attachments: |
|
||||||
|
Description
Jon Honeycutt
2014-11-12 19:34:02 PST
Created attachment 241463 [details]
Patch
Comment on attachment 241463 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=241463&action=review Thanks a lot for fixing this! > LayoutTests/ChangeLog:12 > + * fast/forms/placeholder-attribute-ordering-expected.html: Added. > + * fast/forms/placeholder-attribute-ordering.html: Added. Can you please add a test were attributes are added dynamically from JS? Dynamic style updates tend to have their own set of bugs. > LayoutTests/fast/forms/placeholder-attribute-ordering.html:5 > + ::-webkit-input-placeholder { color: green; } Do you really need to color the placeholder for testing? Using the pseudo element ::-webkit-input-placeholder is a bit annoying because its scope is not yet well defined. (In reply to comment #2) > Comment on attachment 241463 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=241463&action=review > > Thanks a lot for fixing this! > > > LayoutTests/ChangeLog:12 > > + * fast/forms/placeholder-attribute-ordering-expected.html: Added. > > + * fast/forms/placeholder-attribute-ordering.html: Added. > > Can you please add a test were attributes are added dynamically from JS? Yes, I'll add some tests for this. > > Dynamic style updates tend to have their own set of bugs. > > > LayoutTests/fast/forms/placeholder-attribute-ordering.html:5 > > + ::-webkit-input-placeholder { color: green; } > > Do you really need to color the placeholder for testing? > > Using the pseudo element ::-webkit-input-placeholder is a bit annoying > because its scope is not yet well defined. I wanted to use the 'placeholder' attribute for the test and the 'value' attribute to display the same text for the reference file, so I styled them to look the same. I'll change them to both use the 'placeholder' attribute, though. Thanks for the review! Committed r176082: <http://trac.webkit.org/changeset/176082> |