Back references don't work in pattern attribute
authorKent Tamura <tkent@chromium.org>
Thu, 25 Apr 2013 06:42:03 +0000 (06:42 +0000)
committerKent Tamura <tkent@chromium.org>
Thu, 25 Apr 2013 06:42:03 +0000 (06:42 +0000)
commitd42c694287d2831a417b5d44fcbfe378703594bb
tree6125016bbfd3371837b9dfed731435f0088cf266
parentd86eb11c5f00c7bf193223bd388be8a22d259001
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: http://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