W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2004

[whatwg] Simple solution for select editable

From: voracity <subs@voracity.org>
Date: Wed, 30 Jun 2004 00:00:01 +1000
Message-ID: <40E175E1.9060608@voracity.org>
Matthew Raymond wrote:

>    I've come up with a simple solution that allows <select editable> to 
> degrade gracefully in Web Forms 2.0. Just put the extra text box in a 
> repetition template that has zero instances:
> <select editable="editable" name="thing">
>   <option>1</option>
>   <option>2</option>
>   <option>3</option>
> </select>
> <span repeat="template" repeat-start="0">
>   or you can type a new entry: <input type="text" name="thing_new">
> </span>

This would work as well. You would need to add a 'newname' attribute to the 
select, or make newly entered values be sent with a name produced by adding 
'_new' to the end of the select name.

It's not explicit about how it degrades (it relies on the editable attribute, 
and repetitions being introduced to UAs together), but I don't think that's a 
big issue.
Received on Tuesday, 29 June 2004 07:00:01 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:34 UTC