W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2006

[whatwg] [wf2] Filtering datalist with pattern

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 15 Aug 2006 10:01:17 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0608150959010.5340@dhalsim.dreamhost.com>
On Thu, 4 May 2006, Henri Sivonen wrote:
>
> The WF2 spec does not say anything about filtering autocomplete lists on 
> pattern and Opera 9 does not do it. However, autocomplete entries that 
> would fail form validation are not particularly useful.
> 
> I suggest saying that potential autocomplete items (whether supplied by 
> the UA itself or read from a datalist) should be tested against the 
> datatype and the pattern of the form field being filled and should only 
> be shown if they match both the datatype and the pattern.
> 
> (Real-world case: The autocompelete menu for the document field at 
> http://hsivonen.iki.fi/validator/ shows ftp and file URLs in Opera 9 
> even though the pattern only matches http and https URLs.)

Added encouragement.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 15 August 2006 03:01:17 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:28 UTC