W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2004

[whatwg] internationalization/localization

From: fantasai <fantasai.lists@inkedblade.net>
Date: Tue, 13 Jul 2004 15:21:41 +0200
Message-ID: <40F3E1E5.4010507@inkedblade.net>
Pete Harlow wrote:
> 
> fantasai wrote:
> 
>>   <p>The boat trip will be on
>>     <date format="compact">2005-12-04</date>.</p>
>> or
>>   <p>The boat trip will be on
>>     <date format="compact" iso="2005-12-04">04/12/05</date>.</p>
>> ?
>
> I take it the content between <date> and </date> is for legacy UIs 
> otherwise
> <p>
>  <date format="compact" iso="2005-12-04" />
> </p>
> would be cleaner...

No, that's much worse. Content should be in the content of the element,
not its attributes.

The 'iso' attribute is there to accomodate new UAs by giving
the browser some help translating an otherwise ambiguous bit
of content. :)

~fantasai

-- 
http://fantasai.inkedblade.net/contact
Received on Tuesday, 13 July 2004 06:21:41 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:35 UTC