- From: Ian Hickson <ian@hixie.ch>
- Date: Mon, 14 Jun 2004 18:22:27 +0000 (UTC)
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. `._.-(,_..'--(,_..'`-.;.'
Received on Monday, 14 June 2004 11:22:27 UTC