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.


Richard Ishida
Internationalization Lead
W3C (World Wide Web Consortium)


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,


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).


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
Received on Friday, 12 March 2010 18:28:04 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:23 UTC