[Webkit-unassigned] [Bug 76893] Implement value sanitization algorithm for type=datetime

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Oct 18 20:48:57 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=76893





--- Comment #3 from Kunihiko Sakamoto <ksakamoto at chromium.org>  2012-10-18 20:49:53 PST ---
(From update of attachment 169537)
View in context: https://bugs.webkit.org/attachment.cgi?id=169537&action=review

>> LayoutTests/fast/forms/datetime/datetime-value-sanitization-expected.txt:9
>> +PASS input.value = "2009-09-07T16:49:00.000Z"; input.value is "2009-09-07T16:49Z"
> 
> Can you preserve trailing zeros of the input datetime values?
> 
> If we do so, we should do:
>  - Add "SecondFormat m_preferredSecondForamt;" and "SecondFormat preferredSecondFormat() const" to DateComponents
>  - m_preferredSecondFormat is updated in DateComponents::parseTime
>  - DateTimeInputType::sanitizeValue calls date.toString(date.preferredSecondFormat)

The spec says that normalized value is the shortest possible representation of the given time.
http://www.whatwg.org/specs/web-apps/current-work/multipage/common-microsyntaxes.html#valid-normalized-forced-utc-global-date-and-time-string
Is there a good reason for keeping the second format of the input?

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list