[whatwg] Web Forms 2.0 - Comments on sections 1 and 2

Ian Hickson ian at hixie.ch
Mon Jun 14 11:22:27 PDT 2004


On Thu, 10 Jun 2004, Dean Edwards wrote:
>
> whilst we're talking about numbers...
> a common scenario in web apps is to have a separate format for
> displaying numbers (e.g. currencies). The user enters "19" but after
> tabbing to the next field this is then displayed as "$19.00". focus/blur
> events are usually used to format/unformat the underlying value. is it
> too late to formalise something like this by introducing a "format"
> attribute? i could have really used it on the last project i worked on.

We could do that; could you propose some text? I'm not familiar with the
requirements.

Would it just be:

   format="$%02.2d"

...? Where that's basically a subset of the printf format specifier
functionality?

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'



More information about the whatwg mailing list