Bug 83863 - Should clear an invalid string in a date field on blur
Summary: Should clear an invalid string in a date field on blur
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Kent Tamura
URL: data:text/html,<input type=date>
Keywords:
Depends on:
Blocks: 83852
  Show dependency treegraph
 
Reported: 2012-04-12 23:26 PDT by Kent Tamura
Modified: 2012-04-13 00:35 PDT (History)
2 users (show)

See Also:


Attachments
Patch (4.26 KB, patch)
2012-04-13 00:20 PDT, Kent Tamura
haraken: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kent Tamura 2012-04-12 23:26:55 PDT
Should clear an invalid string in a date field on blur

Suppose a page has a date field.
    data:text/html,<input type=date>
Focus on it, type "aaa" into it then focus on another part.

Expected:
The field clears the invalid input "aaa" like <input type=number>.

Actual:
"aaa" remains though the IDL attribute 'value' returns an empty string.
Comment 1 Kent Tamura 2012-04-13 00:20:48 PDT
Created attachment 137051 [details]
Patch
Comment 2 Kentaro Hara 2012-04-13 00:23:39 PDT
Comment on attachment 137051 [details]
Patch

Makes sense.
Comment 3 Kent Tamura 2012-04-13 00:35:57 PDT
Committed r114092: <http://trac.webkit.org/changeset/114092>