Skip to content
Permalink
Browse files

[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 fc893bf1ef1c7942f95ec9fd1760c6a375fba397
Showing with 67 additions and 0 deletions.
  1. +18 −0 complete.html
  2. +18 −0 index
  3. +31 −0 source
<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>

<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>

18 index
<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>

<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>

31 source
@@ -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>

@@ -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>

0 comments on commit fc893bf

Please sign in to comment.
You can’t perform that action at this time.