[whatwg] Localisation of form fields

Benjamin Hawkes-Lewis bhawkeslewis at googlemail.com
Mon May 7 03:11:07 PDT 2012


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



More information about the whatwg mailing list