[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

Aryeh Gregor <Simetrical+w3cbug@gmail.com> changed:

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

--- Comment #43 from Aryeh Gregor <Simetrical+w3cbug@gmail.com> 2010-11-19 00:20:58 UTC ---
I would like to add a further use-case: users might submit content that's a mix
of directions.  This isn't uncommon on forums, e.g.:

http://www.twcenter.net/forums/showthread.php?p=4125153#post4125153
http://www.twcenter.net/forums/showthread.php?p=1249714#post1249714

dir=auto as specced doesn't handle this at all.  Instead, you'd want the
computed direction of the element to be a new value, "auto", which would
propagate to children like the "ltr" and "rtl" values do.  Each UBA paragraph
with computed direction "auto" should then independently decide its direction
based on first-strong (or whatever).  This way, separate paragraphs that are
either RTL or LTR will align themselves appropriately.  Moreover, if you aren't
worried about the first-strong heuristic failing, you can just set <html
dir=auto> and not need to specify direction anywhere else on the page.

-- 
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 Friday, 19 November 2010 00:21:06 UTC