Re: dir=auto makes no sense for descendant user-visible attributes

On 2012/02/23 1:11, Ehsan Akhgari wrote:
> On Wed, Feb 22, 2012 at 10:04 AM, Aharon (Vladimir) Lanin<aharon@google.com
>> wrote:

>> One possibility is to divorce user-visible attributes from their elements'
>> directionality completely, always estimating the directionality of each
>> attribute by its content. This suffers from backwards compatibility
>> problems (since estimation is a heuristic that sometimes gives the wrong
>> answer).
>>
>> A better possibility is to divorce it only for elements under the
>> influence of dir=auto. Thus, if an element has dir=auto (explicitly or
>> implicitly, the latter being the case for<bdi>), each of the attributes in
>> the subrtree rooted at that element, with the exception of elements
>> specifying dir="ltr" or dir="rtl" and their descendants, must be displayed
>> to the user as if they had a dir=auto of heir own.
>>
>
> I like the second proposal better.  Although I have to say that it has been
> worded a bit vaguely.  What I have in mind is for the title attribute in
> the following example to have a resolved RTL direction:
>
> <p dir="auto" title="RTL TEXT followed by ltr text">ltr text FOLLOWED BY
> RTL TEXT</p>

I agree with Ehsan that the second proposal is better. It's something 
that comes quite naturally once one gets used to it.

Regards,    Martin.

Received on Thursday, 23 February 2012 09:32:57 UTC