[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 #21 from Aharon Lanin <aharon.lists.lanin@gmail.com> ---
First, there are a couple of typos:

- Where the text says "If the element is an input element whose type attribute
is in the Telephone state, and the dir attribute is not in a state", it should
probably say "... is not in a defined state (i.e. it is not present or has an
invalid value)". I am not 100% sure the parenthetical is necessary here yet
again (we have it on the preceding line), but the word "defined" does seem to
be in order.

- Where you now have "input[type=tel]:ltr", you probably meant
"input[type=tel]:dir(ltr)".

Second, I now see that there is a problem with the general dir="auto" case. It
is still defaulting to the parent's directionality for all-neutral content, not
just for empty content. I know I had said the opposite (that it was doing it
only for empty content) in comment 18, but I must have been confused.

The problem is that it is not easy to fix this. What we need to do is to
broaden the "Otherwise, if the element is a root element, the directionality of
the element is 'ltr'" to include the case where there were any Text nodes
fitting the two criteria given above that line.

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

Received on Thursday, 13 June 2013 13:44:42 UTC