W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > December 2010

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

From: <bugzilla@jessica.w3.org>
Date: Thu, 23 Dec 2010 09:46:55 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1PVhl9-0008LU-Hn@jessica.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=10808

Aharon Lanin <aharon.lists.lanin@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |

--- Comment #51 from Aharon Lanin <aharon.lists.lanin@gmail.com> 2010-12-23 09:46:54 UTC ---
(In reply to comment #38)
> > 2. For dir="auto", unicode-bidi should get set to "plaintext" for textarea and
> > pre elements, and to "isolate" for everything else.
> 
> Fair enough.

I just noticed that
http://dev.w3.org/html5/spec/Overview.html#punctuation-and-decorations does not
seem to reflect this. 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 */

I believe that it should be:

[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, bdo[dir=auto] { unicode-bidi: bidi-override isolate; } /* case-insensitive 
bdi, output { unicode-bidi: isolate; }

In addition, I wonder whether the (default CSS) effects of dir=auto on <pre>
and <textarea>, namely that the direction of each bidi [aragraph is estimated
separately, should be mentioned in the description of dir=auto.

-- 
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 Thursday, 23 December 2010 09:46:57 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:01:35 UTC