A user account is required in order to edit this wiki, but we've had to disable public user registrations due to spam.

To request an account, ask an autoconfirmed user on Chat (such as one of these permanent autoconfirmed members).

New Form Controls: Difference between revisions

From WHATWG Wiki
Jump to navigation Jump to search
(Added to Community Feedback category)
m (Replacing page with 'The following lists the requests for new form controls. == Search fields == <pre>')
Line 2: Line 2:


== Search fields ==
== Search fields ==
<pre>&lt;input type="search"&gt;</pre>
=== Requests for this Feature ===
* <cite>[http://www.456bereastreet.com/archive/200610/new_w3c_working_group_to_improve_html/ Roger Johansson]</cite> <blockquote><p>The list of allowed type attribute values for input elements extended with search.</p></blockquote>
=== Notes ===
Safari has already implemented this feature and provides a distinct form control to differentiate it from ordinary text boxes.  Other than rendering differences, it's not entirely clear what additional functionality or usability this feature will provide over an ordinary text box.  It would provide a way to semantically identify the search field on the page and it might be possible for UAs to provide additional features, such as a shortcut key to focus the field or remembering search values, although UAs can already do that to some degree with regular text boxes.  More research and feedback is required.
== Combo Boxes ==
This feature is already provided using the [[Datalist|datalist]] features in [[Web Forms 2.0]].


<pre>
<pre>
&lt;input type="text" name="title" list="title-list"&gt;
&lt;datalist id="title-list"&gt;
  &lt;option value="Mr"&gt;
  &lt;option value="Mrs"&gt;
  &lt;option value="Miss"&gt;
  &lt;option value="Ms"&gt;
&lt;/datalist&gt;
</pre>
=== Requests for this Feature ===
* <cite>[http://www.456bereastreet.com/archive/200610/new_w3c_working_group_to_improve_html/#comment13 Tanny O'Haley]</cite> <blockquote><p>I would like to see an expansion of the type attribute on input elements. For input fields we currently have checkbox, password, radio and text. I'd like to see combo (optional text with a drop down list), [...]</p></blockquote>
== Date and Time ==
These features are already provided by the [[Date and Time Controls|date and time controls]] in [[Web Forms 2.0]]
<pre>
&lt;input type="datetime"&gt;
&lt;input type="datetime-local"&gt;
&lt;input type="date"&gt;
&lt;input type="month"&gt;
&lt;input type="week"&gt;
&lt;input type="time"&gt;
</pre>
=== Requests for this Feature ===
* <cite>[http://www.456bereastreet.com/archive/200610/new_w3c_working_group_to_improve_html/#comment13 Tanny O'Haley]</cite> <blockquote><p>For input fields [...] I'd like to see [...], date, time, [...]</p></blockquote>
== URL ==
This feature is already provided with the [[URL Control|URL control]] in [[Web Forms 2.0]].
<pre>&lt;input type="url"&gt;</pre>
=== Requests for this Feature ===
* <cite>[http://www.456bereastreet.com/archive/200610/new_w3c_working_group_to_improve_html/#comment13 Tanny O'Haley]</cite> <blockquote><p>For input fields [...] I'd like to see [...], url.</p></blockquote>
== E-mail ==
This feature is already provided with the [[Email Control|email control]] in [[Web Forms 2.0]].
<pre>&lt;input type="email"&gt;</pre>
=== Requests for this Feature ===
* <cite>[http://www.456bereastreet.com/archive/200610/new_w3c_working_group_to_improve_html/#comment13 Tanny O'Haley]</cite> <blockquote><p>For input fields [...] I'd like to see [...], email, [...]</p></blockquote>
== Int, Long, Unsigned, Float, Number ==
This feature is already provided with the [[Number Control|number control]] in [[Web Forms 2.0]].
<pre>&lt;input type="number"&gt;</pre>
=== Requests for this Feature ===
* <cite>[http://www.456bereastreet.com/archive/200610/new_w3c_working_group_to_improve_html/#comment13 Tanny O'Haley]</cite> <blockquote><p>For input fields [...] I'd like to see [...], int, long, unsigned, float, number, [... ]</p></blockquote>
== Currency ==
An input control that accepts currency.
=== Requests for this Feature ===
* <cite>[http://www.456bereastreet.com/archive/200610/new_w3c_working_group_to_improve_html/#comment13 Tanny O'Haley]</cite> <blockquote><p>For input fields [...] I'd like to see [...], currency, [...]</p></blockquote>
=== Notes ===
There wasn't much information provided about this idea.  Presumably, this might need some way to specify the currency unit (USD, AUD, GBP, Yen, etc.).  The [[Number Control|number control]] could already meet this use case.
[[Category:Feature Request]]
[[Category:Community Feedback]]

Revision as of 03:17, 9 July 2007

The following lists the requests for new form controls.

Search fields