DescriptionImplement HTMLElement directionality according to the spec
The current spec for directionality:
http://www.whatwg.org/specs/web-apps/current-work/multipage/dom.html#the-directionality says that:
- If the element is an input element whose type attribute is in the Text, Search, Telephone,
URL, or E-mail state, and the dir attribute is in the auto state
- If the element is a textarea element and the dir attribute is in the auto state
-- If the element's value contains a character of bidirectional character type AL or R, and there
is no character of bidirectional character type L anywhere before it in the element's value,
then the directionality of the element is 'rtl'. [BIDI]
-- Otherwise, if the element's value is not the empty string, or if the element is a root element,
the directionality of the element is 'ltr'.
-- Otherwise, the directionality of the element is the same as the element's parent element's
directionality.
Patch Set 1 #
Messages
Total messages: 4 (1 generated)
|