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 IRC (such as one of these permanent autoconfirmed members).

Difference between revisions of "New Form Controls"

From WHATWG Wiki
Jump to: navigation, search
 
(Added examples and requests for remaining controls)
Line 11: Line 11:
 
=== Notes ===
 
=== 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 clear what additional functionality or usability this feature will provide.
+
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 ==
 
== Combo Boxes ==
Line 18: Line 18:
  
 
<pre>
 
<pre>
<input type="text" name="title" list="title-list">
+
&lt;input type="text" name="title" list="title-list"&gt;
  
<datalist id="title-list">
+
&lt;datalist id="title-list"&gt;
   <option value="Mr">
+
   &lt;option value="Mr"&gt;
   <option value="Mrs">
+
   &lt;option value="Mrs"&gt;
   <option value="Miss">
+
   &lt;option value="Miss"&gt;
   <option value="Ms">
+
   &lt;option value="Ms"&gt;
</datalist>
+
&lt;/datalist&gt;
 
</pre>
 
</pre>
  
Line 32: Line 32:
 
* <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>
 
* <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/Time ==
+
== 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 ===
 
=== Requests for this Feature ===
  
* <cite>[]</cite> <blockquote><p></p></blockquote>
+
* <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 ==
 
== 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 ===
 
=== Requests for this Feature ===
  
* <cite>[]</cite> <blockquote><p></p></blockquote>
+
* <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 ==
 
== 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 ===
 
=== Requests for this Feature ===
  
* <cite>[]</cite> <blockquote><p></p></blockquote>
+
* <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 ==
  
* Currency
+
An input control that accepts currency.
  
 
=== Requests for this Feature ===
 
=== Requests for this Feature ===
  
* <cite>[]</cite> <blockquote><p></p></blockquote>
+
* <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>
 
 
* URL
 
  
=== Requests for this Feature ===
+
=== Notes ===
  
* <cite>[]</cite> <blockquote><p></p></blockquote>
+
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:Feature Request]]

Revision as of 14:23, 19 November 2006

The following lists the requests for new form controls.

Search fields

<input type="search">

Requests for this Feature

  • Roger Johansson

    The list of allowed type attribute values for input elements extended with search.

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 features in Web Forms 2.0.

<input type="text" name="title" list="title-list">

<datalist id="title-list">
  <option value="Mr">
  <option value="Mrs">
  <option value="Miss">
  <option value="Ms">
</datalist>

Requests for this Feature

  • Tanny O'Haley

    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), [...]

Date and Time

These features are already provided by the date and time controls in Web Forms 2.0

<input type="datetime">
<input type="datetime-local">
<input type="date">
<input type="month">
<input type="week">
<input type="time">

Requests for this Feature

  • Tanny O'Haley

    For input fields [...] I'd like to see [...], date, time, [...]

URL

This feature is already provided with the URL control in Web Forms 2.0.

<input type="url">

Requests for this Feature

E-mail

This feature is already provided with the email control in Web Forms 2.0.

<input type="email">

Requests for this Feature

  • Tanny O'Haley

    For input fields [...] I'd like to see [...], email, [...]

Int, Long, Unsigned, Float, Number

This feature is already provided with the number control in Web Forms 2.0.

<input type="number">

Requests for this Feature

  • Tanny O'Haley

    For input fields [...] I'd like to see [...], int, long, unsigned, float, number, [... ]

Currency

An input control that accepts currency.

Requests for this Feature

  • Tanny O'Haley

    For input fields [...] I'd like to see [...], currency, [...]

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 could already meet this use case.