New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 607097 link

Starred by 2 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Bug



Sign in to add a comment

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.
 
Cc: brajkumar@chromium.org
Components: Blink
Labels: M-52 OS-All
Status: Untriaged (was: Unconfirmed)
Able to reproduce the issue on Window 7, Ubuntu 14.04 and Mac OS 10.11.4 using chrome stable M50-50.0.2661.86. by creating the provided HTML file chrome only shows the input text box without any drop down lists.

This is a non-regression issue seen from past M35-35.0.1851.0, Hence marking it as untriaged.

Note: This issue is working fine on other browsers like Firefox and IE.


Comment 2 by yutak@chromium.org, Apr 28 2016

Components: -Blink Blink>Forms>Datalist

Comment 3 by tkent@chromium.org, May 2 2016

Labels: -M-52 Hotlist-Interop
Status: Available (was: Untriaged)
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]?)"/>
Project Member

Comment 5 by sheriffbot@chromium.org, May 9 2017

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
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

Comment 6 by phistuck@gmail.com, 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
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).
Status: Available (was: Untriaged)
That comment is for project members, not you. :)
I guess this should be kept open, so reverting back to Available.
Components: Blink>Forms>Text
Project Member

Comment 10 by sheriffbot@chromium.org, May 10 2018

Status: Untriaged (was: Available)
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

Comment 11 by tkent@chromium.org, May 17 2018

Status: Available (was: Untriaged)

Sign in to add a comment