[Webkit-unassigned] [Bug 59951] Implement Date and Time Input Value Sanitization

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon May 2 16:03:46 PDT 2011


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


Joseph Pecoraro <joepeck at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #91951|0                           |1
        is obsolete|                            |
  Attachment #91997|                            |review?
               Flag|                            |




--- Comment #6 from Joseph Pecoraro <joepeck at webkit.org>  2011-05-02 16:03:46 PST ---
Created an attachment (id=91997)
 --> (https://bugs.webkit.org/attachment.cgi?id=91997&action=review)
[PATCH] Add Date+Time Value Sanitization

I decided sanitizeValue should actually sanitize HTML5 values,
and not include localized dates as valid. It makes no send
for a page to do elem.value = 'today' and have it actually work.

This also includes some JavaScript cleanup to the last patch.
Darin, are you okay with the change?

I will be filing a separate bug on improving ValidityState::valid,
which accesses input->value() 7 times, each of which might
re-sanitize the value without caching. Seems like there should
be some improvements there.

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