list and pattern mutual exclusive on input element
Reported by
r.brink...@gmail.com,
Apr 27 2016
|
||||||||
Issue description
Chrome Version : 50.0.2661.86 (64-bit)
URLs (if applicable) : any
Other browsers tested:
Add OK or FAIL, along with the version, after other browsers where you
have tested this issue:
Safari:
Firefox: OK
IE:
What steps will reproduce the problem?
Create HTML page with:
<datalist id="streets">
<option value="Downingstreet "/>
<option value="Wallstreet "/>
</datalist>
<input name="address" list="streets" pattern="(Downingstreet [0-9]+)|(Wallstreet [0-9]+)"/>
What is the expected result?
An input field with dropdown list showing both Downingstreet and Wallstreet and auto completion and validate only when a house number is supplied as well.
What happens instead?
No dropdown list and no autocompletion. It seems that when pattern is used the datalist is not used at all.
Please provide any additional information below. Attach a screenshot if
possible.
,
Apr 28 2016
,
May 2 2016
,
May 9 2016
Looks like patternMismatch is happening. If we have '?' in place of '+' in pattern, datalist is shown. Ex: <input name="address" list="streets" pattern="(Downingstreet [0-9]?)|(Wallstreet [0-9]?)"/>
,
May 9 2017
This issue has been available for more than 365 days, and should be re-evaluated. Please re-triage this issue. The Hotlist-Recharge-Cold label is applied for tracking purposes, and should not be removed after re-triaging the issue. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
May 9 2017
The code verifies that the data list has valid values - https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/html/HTMLInputElement.cpp?sq=package:chromium&dr=CSs&l=1570 I guess this check is simply not needed (so this is a one line fix, modulo tests). HTML does not specify this specific check - https://html.spec.whatwg.org/multipage/forms.html#the-list-attribute
,
May 10 2017
I got an e-mail from the Sherriffbot that I should retriage the issue. However I don't seem to have any rights to change the status. Can someone with sufficient rights do it for me? The issue is still present in the current version of Chromium (58.0.3029.81-0ubuntu0.16.04.1277).
,
May 10 2017
That comment is for project members, not you. :) I guess this should be kept open, so reverting back to Available.
,
May 10 2017
,
May 10 2018
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue. Sorry for the inconvenience if the bug really should have been left as Available. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
May 17 2018
|
||||||||
►
Sign in to add a comment |
||||||||
Comment 1 by brajkumar@chromium.org
, Apr 28 2016Components: Blink
Labels: M-52 OS-All
Status: Untriaged (was: Unconfirmed)