W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > January 2011

[Bug 10808] text with unknown direction gets corrupted when inserted in content with opposite direction

From: <bugzilla@jessica.w3.org>
Date: Tue, 11 Jan 2011 13:23:00 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1PceBg-0001Z6-27@jessica.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=10808

--- Comment #55 from Aharon Lanin <aharon.lists.lanin@gmail.com> 2011-01-11 13:22:58 UTC ---
(In reply to comment #54)
> I meant all of comment 51.

Ok, let me rephrase comment 51.

In comment 38, you agreed (I am referring to the "Fair enough" there) that when
an element has dir=auto, the default stylesheet should make its unicode-bidi be
"isolate" in most cases. This makes sense because when the author does not know
the directionality of the element's content, it's pretty clear that letting
that element affect the display of what surrounds is a bad idea, so it should
be isolated.

I say "most cases" because in <pre> and <textarea>, dir=auto needs to result in
{unicode-bidi:plaintext}. Also, in <bdo>, unicode-bidi always needs to be
bidi-override, so for dir=auto I guess it needs to be both, i.e.
{unicode-bidi:bidi-override isolate}.

As far as I can see the default stylesheet as it currently stands does not make
unicode-bidi be "isolate" in most cases. It has:

[dir] { unicode-bidi: embed; }
bdo, bdo[dir] { unicode-bidi: bidi-override; }
bdi, output { unicode-bidi: isolate; }
textarea[dir=auto], pre[dir=auto] { unicode-bidi: plaintext; } /*
case-insensitive */

In other words, in most cases, dir=auto currently still results in
unicode-bidi:embed.

I thus believe that the code above should be changed to:

[dir] { unicode-bidi: embed; }
[dir=auto]  { unicode-bidi: isolate; } /* case-insensitive */
textarea[dir=auto], pre[dir=auto] { unicode-bidi: plaintext; } /*
case-insensitive */
bdo, bdo[dir] { unicode-bidi: bidi-override; }
bdo[dir=auto] { unicode-bidi: bidi-override isolate; } /* case-insensitive */
bdi, output { unicode-bidi: isolate; }

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Tuesday, 11 January 2011 13:23:02 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 13:23:02 GMT