This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 11559 - User agent should not be required to filter suggestions from datalist
Summary: User agent should not be required to filter suggestions from datalist
Status: RESOLVED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: LC1 HTML5 spec (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-16 04:00 UTC by Mounir Lamouri
Modified: 2011-08-04 05:11 UTC (History)
5 users (show)

See Also:


Attachments

Description Mounir Lamouri 2010-12-16 04:00:03 UTC
Currently, the specs say:
"User agents must filter the suggestions to hide suggestions that the user would not be allowed to enter as the input element's value, and should filter the suggestions to hide suggestions that would cause the element to not satisfy its constraints."

Which can be summarized to:
1. filter not allowed value
2. filter invalid values

I do believe that we should not make the filtering mandatory. For example, in the case of a textfield, filtering the values sound useless given that not allowed value will be sanitized and invalid value will just have to be corrected.
However, I agree that, for some widgets, invalid and not allowed values should be filtered. For example, for <input type='number'> and <input type='range'>, we agree that "foo" wouldn't be a good suggestion here.

So, I think we should make the quoted sentence weaker and remove the "must" to at least a "should" and even add that, "Depending on the widget, user agents should filter [...]".
Comment 1 Mounir Lamouri 2010-12-29 22:57:10 UTC
Obviously, it has been fixed in r5725.
Comment 2 Michael[tm] Smith 2011-08-04 05:11:57 UTC
mass-move component to LC1