Issue metadata
Sign in to add a comment
|
Form validation: Regular expression pattern in input fields triggers false positive warning
Reported by
jochen.k...@gmail.com,
Oct 12 2016
|
||||||||||||||||||||||
Issue description
UserAgent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36
Example URL:
Steps to reproduce the problem:
1. create a webpage with a form and an input tag that contains a regular expression pattern:
<input id="shortDescription" name="shortDescription" type="text" autofocus="autofocus" pattern="^([a-zA-Z0-9\ \.\-]{0,90})$">
2.
enter 'abcde' in the input box
3. submit the form
What is the expected behavior?
the form should be submitted
What went wrong?
The form is not submitted, instead i get a message :"Ihre Eingabe muss mit dem geforderten Format übereinstimmen."
That is german and indicates that the String content does not match the regular expression.
The point is that it DOES match the regular expression.
This is a regression. The pattern matching worked fine the last 3 years, problems only started to occur during since version 53 of chrome ().
Does it occur on multiple sites: Yes
Is it a problem with a plugin? N/A
Did this work before? Yes 52
Does this work in other browsers? N/A
Chrome version: 53.0.2785.143 Channel: stable
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
Flash Version: Shockwave Flash 23.0 r0
The problem is also dicussed here:
http://stackoverflow.com/questions/39663371/regular-expression-form-validation-in-chrome
|
|||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||
Comment 1 by dtapu...@chromium.org
, Oct 12 2016Status: Duplicate (was: Unconfirmed)