Back references don't work in pattern attribute
authortkent@chromium.org <tkent@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 25 Apr 2013 06:42:03 +0000 (06:42 +0000)
committertkent@chromium.org <tkent@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 25 Apr 2013 06:42:03 +0000 (06:42 +0000)
commit9e15cfe3aed607bd4cbb285bb1947e41b77773f3
tree6125016bbfd3371837b9dfed731435f0088cf266
parentad80ded3419c3dd4316cccf26647207de3f2407a
Back references don't work in pattern attribute
https://bugs.webkit.org/show_bug.cgi?id=105875

Reviewed by Geoffrey Garen.

Source/WebCore:

This imports a part of Blink r148951.

Tests: Update fast/forms/ValidityState-patternMismatch.html

* html/BaseTextInputType.cpp:
(WebCore::BaseTextInputType::patternMismatch):
Don't use capturing parentheses. They affected back references in
pattern attribute values.

LayoutTests:

* fast/forms/ValidityState-patternMismatch-expected.txt:
* fast/forms/ValidityState-patternMismatch.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@149093 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/forms/ValidityState-patternMismatch-expected.txt
LayoutTests/fast/forms/ValidityState-patternMismatch.html
Source/WebCore/ChangeLog
Source/WebCore/html/BaseTextInputType.cpp