[Bug 17835] The directionality of a textarea should be determined based on its parent if its value does not have any strong characters

https://www.w3.org/Bugs/Public/show_bug.cgi?id=17835

--- Comment #12 from Aharon Lanin <aharon.lists.lanin@gmail.com> ---
(In reply to comment #11)
> I don't follow. Why would you want the neutrals to always be ltr?

See comments 1 and 3 from the original bug, i.e.:

 #1   fantasai                                        2012-03-29 00:24:40 +0000 
--------------------------------------------------------------------------------
The reason for the current spec language is to keep the reordering results
consistent with plaintext. In plaintext, a paragraph of neutral characters is
ordered LTR.

I don't mind defaulting to the inherited direction when the element is empty,
if that makes for a better UI, but when it has neutral content, it should
default to LTR regardless of the inherited direction.
================================================================================
 #3   Aharon Lanin                                    2012-03-29 10:39:29 +0000 
--------------------------------------------------------------------------------
[...]

I agree with fantasai. That is, the textarea in <div dir=rtl><textarea
dir=auto>--></textarea></div> has to be displayed as "-->" (i.e. LTR), not <--,
despite the parent being RTL. If, for a neutral value, it depended on the
ancestor, then the display when entered will not necessarily match the way it
is later displayed in a <pre> which happens to be displayed in a parent of the
other directionality, e.g. in an opposite-directionality page. Also, LTR for
all-neutral happens to work nicely for phone numbers (e.g. "(987) 654-3210"),
which need to be displayed LTR.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Received on Wednesday, 17 April 2013 06:59:52 UTC