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

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 on the CC list for the bug.
You reported the bug.

Received on Thursday, 23 December 2010 09:46:56 UTC