[html5] r6420 - [giow] (1) fix dir=auto for <textarea> and <input> text fields. Fixing http://ww [...]

whatwg at whatwg.org whatwg at whatwg.org
Thu Aug 11 14:12:42 PDT 2011


Author: ianh
Date: 2011-08-11 14:12:41 -0700 (Thu, 11 Aug 2011)
New Revision: 6420

Modified:
   complete.html
   index
   source
Log:
[giow] (1) fix dir=auto for <textarea> and <input> text fields.
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=13482

Modified: complete.html
===================================================================
--- complete.html	2011-08-11 20:40:29 UTC (rev 6419)
+++ complete.html	2011-08-11 21:12:41 UTC (rev 6420)
@@ -10560,6 +10560,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>
 
@@ -10588,6 +10605,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>
 

Modified: index
===================================================================
--- index	2011-08-11 20:40:29 UTC (rev 6419)
+++ index	2011-08-11 21:12:41 UTC (rev 6420)
@@ -10424,6 +10424,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>
 
@@ -10452,6 +10469,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>
 

Modified: source
===================================================================
--- source	2011-08-11 20:40:29 UTC (rev 6419)
+++ source	2011-08-11 21:12:41 UTC (rev 6420)
@@ -10782,6 +10782,36 @@
    title="concept-rtl">rtl</span>'.</p></dd>
 
 
+   <dt>If the element is an <code>input</code> element whose <code
+   title="attr-input-type">type</code> attribute is in the <span
+   title="attr-input-type-text">Text</span>, <span
+   title="attr-input-type-search">Search</span>, <span
+   title="attr-input-type-tel">Telephone</span>, <span
+   title="attr-input-type-url">URL</span>, or <span
+   title="attr-input-type-email">E-mail</span> state, and the <code
+   title="attr-dir">dir</code> attribute is in the <span
+   title="attr-dir-auto-state">auto</span> state</dt>
+
+   <dt>If the element is a <code>textarea</code> element and the <code
+   title="attr-dir">dir</code> attribute is in the <span
+   title="attr-dir-auto-state">auto</span> state</dt>
+
+   <dd>
+
+    <p>If the element's <span title="concept-fe-value">value</span>
+    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 <span
+    title="concept-fe-value">value</span>, then <span>the
+    directionality</span> of the element is '<span
+    title="concept-rtl">rtl</span>'. Otherwise, <span>the
+    directionality</span> of the element is '<span
+    title="concept-ltr">ltr</span>'.</p>
+
+   </dd>
+
+
+
    <dt>If the element's <code title="attr-dir">dir</code> attribute is
    in the <span title="attr-dir-auto-state">auto</span> state</dt>
 
@@ -10815,6 +10845,7 @@
        <li>A <code>bdi</code> element.
        <li>A <code>script</code> element.
        <li>A <code>style</code> element.
+       <li>A <code>textarea</code> element.
        <li>An element with a <code title="attr-dir">dir</code> attribute in a defined state.
       </ul>
 




More information about the Commit-Watchers mailing list