Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[giow] (1) fix dir=auto for <textarea> and <input> text fields.
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=13482

git-svn-id: http://svn.whatwg.org/webapps@6420 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Aug 11, 2011
1 parent 9dcde96 commit fc893bf
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 0 deletions.
18 changes: 18 additions & 0 deletions complete.html
Expand Up @@ -10560,6 +10560,23 @@ <h5 id=the-dir-attribute><span class=secno>3.2.3.5 </span>The <dfn title=attr-di
<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>

Expand Down Expand Up @@ -10588,6 +10605,7 @@ <h5 id=the-dir-attribute><span class=secno>3.2.3.5 </span>The <dfn title=attr-di
<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>

Expand Down
18 changes: 18 additions & 0 deletions index
Expand Up @@ -10424,6 +10424,23 @@ Transport Protocol"&gt;HTTP&lt;/abbr&gt; today.&lt;/p&gt;</pre>
<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>

Expand Down Expand Up @@ -10452,6 +10469,7 @@ Transport Protocol"&gt;HTTP&lt;/abbr&gt; today.&lt;/p&gt;</pre>
<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>

Expand Down
31 changes: 31 additions & 0 deletions source
Expand Up @@ -10782,6 +10782,36 @@ Transport Protocol">HTTP&lt;/abbr> today.&lt;/p></pre>
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>

Expand Down Expand Up @@ -10815,6 +10845,7 @@ Transport Protocol">HTTP&lt;/abbr> today.&lt;/p></pre>
<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>

Expand Down

0 comments on commit fc893bf

Please sign in to comment.