[Webkit-unassigned] [Bug 110431] INPUT_MULTIPLE_FIELDS_UI: Unable to enter "24" to hour field

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Feb 21 05:37:43 PST 2013


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


Kent Tamura (ooo until Mar 15) <tkent at chromium.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #189503|review?                     |review-
               Flag|                            |




--- Comment #4 from Kent Tamura (ooo until Mar 15) <tkent at chromium.org>  2013-02-21 05:40:07 PST ---
(From update of attachment 189503)
View in context: https://bugs.webkit.org/attachment.cgi?id=189503&action=review

I have another idea.
How about adding pattern attribute to DateTimeEditElement?
In this case, we don't need to add an Internals method, and use getElementByPseudoId(internals.youngestShadowRoot(input), "-webkit-datetime-edit").setAttribute("pattern", "KK:mm a") (then doing something invoking updateInnerTextValue()). Also, we don't need to add extra data member for date/time format.

>> Source/WebCore/html/HTMLInputElement.cpp:1571
>> +    if (m_inputType->isDateField() || m_inputType->isTimeField() || m_inputType->isDateTimeField() || m_inputType->isDateTimeLocalField())
> 
> I think we decided not to branch depending on input types in HTMLInputElement.cpp. setDateTimeFormat should be added to InputType.h as a virtual method.

Keishi is right.

-- 
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