[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

--- Comment #45 from Aharon Lanin <aharon.lists.lanin@gmail.com> 2010-11-29 09:00:36 UTC ---
(In reply to comment #40)
> Checked in as WHATWG revision r5673.
> Check-in comment: An example of dir=auto. Since I don't speak Arabic and am
> relying on Wikipedia, a close review by Arabic speakers would be even more
> welcome than usual.
> http://html5.org/tools/web-apps-tracker?from=5672&to=5673

While I am not an Arabic speaker and thus can not vouch for that aspect, kudos
on both the description of dir=auto and the example.

Nevertheless, there is a small logical problems in the definition of the text
elements considered by dir=auto. The bdi element should be added to the list of
cases whose descendant text is excluded from the scan (and which currently
includes the script and style elements). This is necessary because although bdi
is supposed to behave as if it had dir=auto when its dir attribute does not
have a defined state, formally it still does not have a defined dir attribute
state, so the "element with a dir attribute in a defined state" rule does not
actually apply to it. Without this change, the IM example will not work
properly.

-- 
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 Monday, 29 November 2010 09:00:46 UTC