New issue
Advanced search Search tips

Issue 667713 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner: ----
Closed: Nov 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug-Regression



Sign in to add a comment

HMTL5 form pattern validation fail for \'

Reported by benja...@youmiam.com, Nov 22 2016

Issue description

UserAgent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/53.0.2785.143 Chrome/53.0.2785.143 Safari/537.36

Steps to reproduce the problem:
1. Create a form with a field : <input type="text" id="register_username" name="username" required="required" maxlength="255" pattern="[a-z\']*" placeholder="Nom d'utilisateur" class="main-input not-removable"> 
2. Load the page
3. Type abc in form
4. Validate the form

What is the expected behavior?
It should validate the form but it says that text is invalid.

What went wrong?
Says the text is invalid.

pattern="[a-z]*" works great
pattern="[a-z\']*" doesn't work

Did this work before? Yes 

Chrome version: 53.0.2785.143  Channel: stable
OS Version: Ubuntu 16.04 LTS
Flash Version:
 
Components: Blink>Forms
Labels: M-54 Needs-Feedback Needs-Triage-M54
Thanks for filing the issue.
Can you please provide a sample html file for the ease of finding regression.
Here's an HTML file so you can test. ;)
test.html
215 bytes View Download
Because /[a-z\']*/u is an invalid regular expression.

see https://www.chromestatus.com/feature/4753420745441280 and  issue 535441 
It is an invalid regular expression only in javascript ...
But OK. I would change it on my side.

Comment 5 by tkent@chromium.org, Nov 23 2016

Components: -UI -Blink>Forms Blink>Forms>Text
Labels: -Needs-Feedback -M-54 -Needs-Triage-M54
Status: WontFix (was: Unconfirmed)
#3 is right.  Firefox has the same behavior.

Sign in to add a comment