Bug 105875 - Back references don't work in pattern attribute
Summary: Back references don't work in pattern attribute
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac (Intel) OS X 10.7
: P2 Normal
Assignee: Kent Tamura
URL: http://dev.nospoon.tv/webkit-pattern-...
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-30 14:09 PST by Hugh Guiney
Modified: 2013-04-24 23:40 PDT (History)
3 users (show)

See Also:


Attachments
Patch (5.54 KB, patch)
2013-04-24 22:53 PDT, Kent Tamura
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hugh Guiney 2012-12-30 14:09:50 PST
At the URL provided you will find an imitation datetime input: a text field with a pattern attribute specifying a regular expression that matches most of ISO 8601. It is tested and working in both Firefox and Opera. However, in Safari and Chrome, "2013-01-01" and other valid permutations trigger an invalid status.

I am using Cameron Brooks's regex and test cases from http://underground.infovark.com/2008/07/22/iso-date-validation-regex/#comment-344 to demonstrate the problem.
Comment 1 Kent Tamura 2013-01-01 03:18:19 PST
This happens due to back references in patterns.

https://code.google.com/p/chromium/issues/detail?id=139971
Comment 2 Kent Tamura 2013-04-24 22:53:37 PDT
Created attachment 199621 [details]
Patch
Comment 3 Geoffrey Garen 2013-04-24 23:13:09 PDT
Comment on attachment 199621 [details]
Patch

r=me
Comment 4 Kent Tamura 2013-04-24 23:14:46 PDT
Comment on attachment 199621 [details]
Patch

Thanks!
Comment 5 WebKit Commit Bot 2013-04-24 23:40:56 PDT
Comment on attachment 199621 [details]
Patch

Clearing flags on attachment: 199621

Committed r149093: <http://trac.webkit.org/changeset/149093>
Comment 6 WebKit Commit Bot 2013-04-24 23:40:58 PDT
All reviewed patches have been landed.  Closing bug.