[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:55:23 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=76893
--- Comment #4 from Kent Tamura <tkent at chromium.org> 2012-10-18 20:56:18 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?
Oh, I see. It is a standard behavior.
So, the C++ part of your patch is ok.
--
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