If I specify something like:
<content type="xhtml" dir="ltr">
<div xmlns="...">
This is some left-to-right text with a
<a href="..." dir="rtl">right-to-left link</a>
</div>
</content>
The behavior depends a large part on how the content is displayed.
Typically, I would expect the above to be equivalent to:
<div dir="ltr">
This is some left-to-right text with a
<a href="..." dir="rtl">right-to-left link</a>
</div>
However, in other contexts, depending on how the content is displayed,
it could be equivalent to something like
<span dir="ltr">
This is some left-to-right text with a
<a href="..." dir="rtl">right-to-left link</a>
</span>
Or even just
‎This is some left-to-right text with a
<a href="..." dir="rtl">right-to-left link</a>‎
Either way, the behavior of the dir on the anchor is unmodified and
standard (X)HTML rules apply.
- James
Eric Scheid wrote:
> On 4/10/06 1:03 AM, "James M Snell" <[EMAIL PROTECTED]> wrote:
>
>>>> A dir="rtl" on the content element establishes the base direction for
>>>> the content but, just as with xml:lang, the content itself can override
>>>> the value using whatever mechanisms are native to the content type.
>>> xml:lang doesn't go to a child (embedded) document.
>
>> The language specified by xml:lang applies to the element where
>> it is specified (including the values of its attributes), and to all
>> elements in its content unless overridden with another instance of
>> xml:lang.
>
> what happens here?
>
> <a href=".." dir="rtl"> .. yadda .. </a>
>
> e.
>
>