[Bug 12902] Simplify input types (remove excessive date types) and add format attribute

http://www.w3.org/Bugs/Public/show_bug.cgi?id=12902

Aryeh Gregor <Simetrical+w3cbug@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |Simetrical+w3cbug@gmail.com

--- Comment #1 from Aryeh Gregor <Simetrical+w3cbug@gmail.com> 2011-06-07 22:31:34 UTC ---
(In reply to comment #0)
> Numerous developers are not understanding this number of date types an input
> can have and their control over the format.  Developers want a clear way to
> control the format of the date (like if displaying time, the ability to control
> whether it uses am/pm or allows milliseconds).  Moreover, people want to be
> able to control the color format and the number format as well.

Evidence would be appropriate when making statements like "Numerous developers
are . . .", "Developers want . . .", "people want . . .".

> Propose: Remove all datetime types except "datetime".

Why?

> <input type="color" format="hex"> #000000
> <input type="color" format="rgba"> 255, 0, 0, 0.2
> <input type="color" format="hsl"> 120, 50%, 50%

<input type=color> is supposed to pop up a color-picker, not allow manual entry
of the color.  What is this format field supposed to do?

> <input type="number" format="integer"> 1234
> <input type="number" format="float" lang="fr"> 1 234,845
> <input type="number" format="decimal(2)"> 1234.84 (only allows 2 decimal
> precision)

These are equivalent to

<input type=number>
<input type=number step=any lang=fr>
<input type=number step=0.01>

No browser yet implements this properly.

> <input type="datetime" format="longdate"> Friday, September 12, 1980 ()
> <input type="datetime" format="shortdate" lang="en-GB"> 21/09/1980

<input type=datetime> and friends are supposed to pop up date-pickers, not
allow manual entries of date strings.  (Look at how Opera implements it, for
instance.)  What is this format field supposed to do?

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Tuesday, 7 June 2011 22:31:37 UTC