W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2010

RE: [widgets] dir and span elements

From: Richard Ishida <ishida@w3.org>
Date: Fri, 12 Mar 2010 18:27:32 -0000
To: <marcosc@opera.com>
Cc: "'Phillips, Addison'" <addison@amazon.com>, "'Scott Wilson'" <scott.bradley.wilson@gmail.com>, "'public-webapps'" <public-webapps@w3.org>, <public-i18n-core@w3.org>, "'Felix Sasaki'" <felix.sasaki@fh-potsdam.de>
Message-ID: <022a01cac211$ae8cdc20$0ba69460$@org>
I agree with Felix.  Note also for example that the HTML 4.01 spec also says
"This attribute specifies the base direction of directionally neutral text
...  in an element's content *and attribute values*. " (my emphasis).

There are, of course, some problems with applying directionality to
attributes where their base direction is different than that of the element
content or they contain text which needs to have embeddings applied to just
a part of the text.  These are some of the reasons that we and the ITS spec
always advise against using user readable text in attributes - use elements
for that stuff.

RI 

============
Richard Ishida
Internationalization Lead
W3C (World Wide Web Consortium)

http://www.w3.org/International/
http://rishida.net/



From: public-i18n-core-request@w3.org
[mailto:public-i18n-core-request@w3.org] On Behalf Of Felix Sasaki
Sent: 10 March 2010 16:15
To: marcosc@opera.com
Cc: Phillips, Addison; Scott Wilson; public-webapps; public-i18n-core@w3.org
Subject: Re: [widgets] dir and span elements

Hi Marcos,

2010/3/10 Marcos Caceres <marcosc@opera.com>
Hi Addison, Richard, and i18 WG,

[snip] 

Upon reflection on the discussion above, I think the dir attr must
behave the same as xml:lang -  meaning that the value of dir is
applied to the element, all its attributes, and its child nodes.

Correct. This is also how the element is defined in ITS, see the
"inheritance" column at
http://www.w3.org/TR/its/#datacategories-defaults-etc : "Textual content of
element, including attributes and child elements", the same as "language
information" in the same table (a mediator for xml:lang).

Best,

Felix
No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 9.0.733 / Virus Database: 271.1.1/2732 - Release Date: 03/09/10
19:33:00
Received on Friday, 12 March 2010 18:28:04 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:37 GMT