![]() |
|
![]() |
||
![]() |
![]() |
|
[WWW-HTML Mailing List Archive Home] [Messages By Thread] [Messages By Date] Re: 'dir' attribute on BIDI inline elements and actual browsers
From: Mikko Rantalainen <mikko.rantalainen@peda.net>
Date: Tue, 19 Dec 2006 17:43:18 +0200 Message-ID: <45880896.7010603@peda.net> To: www-html@w3.org Helmut Wollmersdorfer wrote: > 8.2.3 Setting the direction of embedded text > http://www.w3.org/TR/html401/struct/dirlang.html#h-8.2.3 > > describes the use of the 'dir'-attribute on inline elements, and gives a > nice (and simple) example. > > Let me give another example: > > <p>English1 <span dir="rtl">עברית2</span>. > <span dir="rtl">עברית3</span> Englisch4.</p> > > In plain text > English1 Hebrew2. Hebrew3 English4. > > Which some browsers (Mozilla familiy, IE) display > > [1] English1 3werbeH .2werbeH English4. > > and Konqueror 3.5.5 displays > > [2] English1 2werbeH. 3werbeH English4. > > Which one is compliant to the W3C Specification? I believe that the [1] variant is the correct one. As the span elements above are not nested with each other I think the correct rendering should be similar to rendering of <p>English1 <span dir="rtl">עברית2. עברית3</span> English4.</p> or <p>English1 עברית2. עברית3 English4.</p> which, if I've understood correctly, should be rendered like the [1] variant above. (I interpret the above to contain two RTL text runs separated by neutral characters.) -- MikkoReceived on Tuesday, 19 December 2006 15:43:34 GMT |
|
||||||||||||||||