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

[whatwg] [wf2] Filtering datalist with pattern

From: Matthew Raymond <mattraymond@earthlink.net>
Date: Thu, 24 Aug 2006 00:02:49 -0400
Message-ID: <44ED24E9.7090407@earthlink.net>
Ian Hickson wrote:

> Could you give an example of this? It seems like the common cases, like 
> picking named values, would be handled by label="" vs value="":
> 
>    1:<input type="number" name="gauge" list="gauges" min="0" step="any">
>    <datalist id="gauges">
>     <option label="Z" value="220">
>     <option label="N" value="160">
>     <option label="HO" value="87">
>     <option value="8">
>    </datalist>

   Yeah, I suppose that would be fine, except for extremely rare cases
where the value absolutely has to be outside the pattern. The following
don't have fixed-length numeric values, for instance:

| <datalist id="math">
|   <option label="i" value="sqrt(-1)">
|   <option label="&pi;" value="pi">
|   <option label="e" value="e">
| </datalist>

   I'm not entirely sure if they're a big enough deal to bother with.
The |label| attribute really would fix most problems. Now all we have to
do is get a vendor to implement |label| properly. :(
Received on Wednesday, 23 August 2006 21:02:49 UTC

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