hixie: fix dir=auto for <textarea> and <input> text fields. (whatwg r6420)

hixie: fix dir=auto for <textarea> and <input> text fields. (whatwg
r6420)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.5124&r2=1.5125&f=h
http://html5.org/tools/web-apps-tracker?from=6419&to=6420

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.5124
retrieving revision 1.5125
diff -u -d -r1.5124 -r1.5125
--- Overview.html 11 Aug 2011 20:40:43 -0000 1.5124
+++ Overview.html 11 Aug 2011 21:12:54 -0000 1.5125
@@ -8708,6 +8708,23 @@
    <dd><p><a href="#the-directionality">The directionality</a> of the element is '<a href="#concept-rtl" title="concept-rtl">rtl</a>'.</dd>
 
 
+   <dt>If the element is an <code><a href="#the-input-element">input</a></code> element whose <code title="attr-input-type"><a href="#attr-input-type">type</a></code> attribute is in the <a href="#text-state-and-search-state" title="attr-input-type-text">Text</a>, <a href="#text-state-and-search-state" title="attr-input-type-search">Search</a>, <a href="#telephone-state" title="attr-input-type-tel">Telephone</a>, <a href="#url-state" title="attr-input-type-url">URL</a>, or <a href="#e-mail-state" title="attr-input-type-email">E-mail</a> state, and the <code title="attr-dir"><a href="#the-dir-attribute">dir</a></code> attribute is in the <a href="#attr-dir-auto-state" title="attr-dir-auto-state">auto</a> state</dt>
+
+   <dt>If the element is a <code><a href="#the-textarea-element">textarea</a></code> element and the <code title="attr-dir"><a href="#the-dir-attribute">dir</a></code> attribute is in the <a href="#attr-dir-auto-state" title="attr-dir-auto-state">auto</a> state</dt>
+
+   <dd>
+
+    <p>If the element's <a href="#concept-fe-value" title="concept-fe-value">value</a>
+    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 <a href="#concept-fe-value" title="concept-fe-value">value</a>, then <a href="#the-directionality">the
+    directionality</a> of the element is '<a href="#concept-rtl" title="concept-rtl">rtl</a>'. Otherwise, <a href="#the-directionality">the
+    directionality</a> of the element is '<a href="#concept-ltr" title="concept-ltr">ltr</a>'.</p>
+
+   </dd>
+
+
+
    <dt>If the element's <code title="attr-dir"><a href="#the-dir-attribute">dir</a></code> attribute is
    in the <a href="#attr-dir-auto-state" title="attr-dir-auto-state">auto</a> state</dt>
 
@@ -8736,6 +8753,7 @@
       <ul class="brief"><li>A <code><a href="#the-bdi-element">bdi</a></code> element.
        <li>A <code><a href="#the-script-element">script</a></code> element.
        <li>A <code><a href="#the-style-element">style</a></code> element.
+       <li>A <code><a href="#the-textarea-element">textarea</a></code> element.
        <li>An element with a <code title="attr-dir"><a href="#the-dir-attribute">dir</a></code> attribute in a defined state.
       </ul></li>

Received on Thursday, 11 August 2011 21:13:04 UTC