W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2014

Re: [whatwg] list attribute for select elements

From: Luis Farzati <lfarzati@gmail.com>
Date: Sun, 18 May 2014 14:50:04 -0300
Message-ID: <CAJVf_xptxhk9go=VZcw180086OruAoTZbyYWc_yO4bmxrkLL9w@mail.gmail.com>
To: Anne van Kesteren <annevk@annevk.nl>
Cc: WHATWG <whatwg@whatwg.org>
As I see it, list is perfectly fine the way it was designed but it could be
applied to select elements, thus enabling feeding options to a dropdown
externally, thus enabling a way to reuse options in dropdowns (without
redundant nodes).

I am building long immigration forms for USCIS and, for example, a very
common field is Country. It is asked several times even in the same page
(for the address of birth, address of residence, address of your relative,
etc...). Relative kind is another example.

So I think it makes sense to have a single <datalist> and then have

<select name="birth.country" list="countries"></select>
<select name="residence.country" list="countries"></select>

On Sun, May 18, 2014 at 1:41 PM, Anne van Kesteren <annevk@annevk.nl> wrote:
> On Sun, May 18, 2014 at 6:34 PM, Luis Farzati <lfarzati@gmail.com> wrote:
> > Sorry if this has been discussed already, but I wanted to ask you guys
> > you have considered making the list attribute available for selects.
> I don't think so. What would the use case be?
> --
> http://annevankesteren.nl/
Received on Sunday, 18 May 2014 17:50:50 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:20 UTC