Bug 105875

Summary: Back references don't work in pattern attribute
Product: WebKit Reporter: Hugh Guiney <hugh>
Component: FormsAssignee: Kent Tamura <tkent>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, haraken, tkent
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Mac (Intel)   
OS: OS X 10.7   
URL: http://dev.nospoon.tv/webkit-pattern-attribute/
Attachments:
Description Flags
Patch none

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.