W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2012

[whatwg] Localisation of form fields

From: Benjamin Hawkes-Lewis <bhawkeslewis@googlemail.com>
Date: Mon, 7 May 2012 11:11:07 +0100
Message-ID: <CAEhSh3eUhzV+egYx4ecFFU+nR=SyuvhBMDrM+6HcjZBWh5xpow@mail.gmail.com>
On Mon, May 7, 2012 at 9:32 AM, Bronislav Klu?ka
<Bronislav.Klucka at bauglir.com> wrote:
> I can see you are pushing for CSS because of presentation level, but
> 1/ you need to display currency or number, what would you do?
> <span style="format-type: number; format-decimal-separator:
> ',';">123.22</span>
> something like that? I can see that, but would be better something like
> <data role=number value=123.22 style="format-type: number;
> format-decimal-separator: ',';" />
> <data role=currency value=2.22 char=$ style="format-type: number;
> format-decimal-separator: ','; format-currency-format: 2" />
> this could enhance machine processing capabilities.

Compare:

http://wiki.csswg.org/ideas/content-formatting

http://lists.w3.org/Archives/Public/www-style/2012Mar/0575.html

--
Benjamin Hawkes-Lewis
Received on Monday, 7 May 2012 03:11:07 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 January 2013 18:48:08 GMT