Skip to content

Commit

Permalink
[giow] (2) Work on dir=auto. More work may come.
Browse files Browse the repository at this point in the history
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=17835
Affected topics: HTML

git-svn-id: http://svn.whatwg.org/webapps@7863 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Apr 30, 2013
1 parent 3a7fd14 commit 0273463
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 27 deletions.
15 changes: 6 additions & 9 deletions complete.html
Expand Up @@ -9734,10 +9734,12 @@ <h5 id=the-dir-attribute><span class=secno>3.2.3.6 </span>The <dfn title=attr-di

<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-rtl-state title=attr-dir-rtl-state>rtl</a> state</dt>

<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="#telephone-state-(type=tel)" title=attr-input-type-tel>Telephone</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>

<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-(type=text)-state-and-search-state-(type=search)" title=attr-input-type-text>Text</a>, <a href="#text-(type=text)-state-and-search-state-(type=search)" title=attr-input-type-search>Search</a>, <a href="#telephone-state-(type=tel)" title=attr-input-type-tel>Telephone</a>, <a href="#url-state-(type=url)" title=attr-input-type-url>URL</a>, or <a href="#e-mail-state-(type=email)" 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 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-(type=text)-state-and-search-state-(type=search)" title=attr-input-type-text>Text</a>, <a href="#text-(type=text)-state-and-search-state-(type=search)" title=attr-input-type-search>Search</a>, <a href="#url-state-(type=url)" title=attr-input-type-url>URL</a>, or <a href="#e-mail-state-(type=email)" 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>
Expand All @@ -9750,14 +9752,9 @@ <h5 id=the-dir-attribute><span class=secno>3.2.3.6 </span>The <dfn title=attr-di
<a href=#the-directionality>the directionality</a> of the element is '<a href=#concept-rtl title=concept-rtl>rtl</a>'.
<a href=#refsBIDI>[BIDI]</a></p>

<p>If the element's <a href=#concept-fe-value title=concept-fe-value>value</a> contains a character of
bidirectional character type L, and there is no character of bidirectional character type
AL or R 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-ltr title=concept-ltr>ltr</a>'.
<a href=#refsBIDI>[BIDI]</a></p>

<p>Otherwise, if the element is a <a href=#root-element>root element</a>, <a href=#the-directionality>the directionality</a> of
the element is '<a href=#concept-ltr title=concept-ltr>ltr</a>'.</p>
<p>Otherwise, if the element's <a href=#concept-fe-value title=concept-fe-value>value</a> is not the empty
string, or if the element is a <a href=#root-element>root element</a>, <a href=#the-directionality>the directionality</a> of the
element is '<a href=#concept-ltr title=concept-ltr>ltr</a>'.</p>

<p>Otherwise, <a href=#the-directionality>the directionality</a> of the element is the same as the element's parent
element's <a href=#the-directionality title="the directionality">directionality</a>.</p>
Expand Down
15 changes: 6 additions & 9 deletions index
Expand Up @@ -9734,10 +9734,12 @@ Transport Protocol"&gt;HTTP&lt;/abbr&gt; today.&lt;/p&gt;</pre> <!-- DO NOT REWR

<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-rtl-state title=attr-dir-rtl-state>rtl</a> state</dt>

<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="#telephone-state-(type=tel)" title=attr-input-type-tel>Telephone</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>

<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-(type=text)-state-and-search-state-(type=search)" title=attr-input-type-text>Text</a>, <a href="#text-(type=text)-state-and-search-state-(type=search)" title=attr-input-type-search>Search</a>, <a href="#telephone-state-(type=tel)" title=attr-input-type-tel>Telephone</a>, <a href="#url-state-(type=url)" title=attr-input-type-url>URL</a>, or <a href="#e-mail-state-(type=email)" 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 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-(type=text)-state-and-search-state-(type=search)" title=attr-input-type-text>Text</a>, <a href="#text-(type=text)-state-and-search-state-(type=search)" title=attr-input-type-search>Search</a>, <a href="#url-state-(type=url)" title=attr-input-type-url>URL</a>, or <a href="#e-mail-state-(type=email)" 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>
Expand All @@ -9750,14 +9752,9 @@ Transport Protocol"&gt;HTTP&lt;/abbr&gt; today.&lt;/p&gt;</pre> <!-- DO NOT REWR
<a href=#the-directionality>the directionality</a> of the element is '<a href=#concept-rtl title=concept-rtl>rtl</a>'.
<a href=#refsBIDI>[BIDI]</a></p>

<p>If the element's <a href=#concept-fe-value title=concept-fe-value>value</a> contains a character of
bidirectional character type L, and there is no character of bidirectional character type
AL or R 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-ltr title=concept-ltr>ltr</a>'.
<a href=#refsBIDI>[BIDI]</a></p>

<p>Otherwise, if the element is a <a href=#root-element>root element</a>, <a href=#the-directionality>the directionality</a> of
the element is '<a href=#concept-ltr title=concept-ltr>ltr</a>'.</p>
<p>Otherwise, if the element's <a href=#concept-fe-value title=concept-fe-value>value</a> is not the empty
string, or if the element is a <a href=#root-element>root element</a>, <a href=#the-directionality>the directionality</a> of the
element is '<a href=#concept-ltr title=concept-ltr>ltr</a>'.</p>

<p>Otherwise, <a href=#the-directionality>the directionality</a> of the element is the same as the element's parent
element's <a href=#the-directionality title="the directionality">directionality</a>.</p>
Expand Down
18 changes: 9 additions & 9 deletions source
Expand Up @@ -9653,6 +9653,12 @@ Transport Protocol">HTTP&lt;/abbr> today.&lt;/p></pre> <!-- DO NOT REWRAP THIS L
<dt>If the element's <code title="attr-dir">dir</code> attribute is in the <span
title="attr-dir-rtl-state">rtl</span> state</dt>

<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-tel">Telephone</span> state, and the <code
title="attr-dir">dir</code> attribute is in the <span
title="attr-dir-auto-state">auto</span> state</dt>

<dd><p><span>The directionality</span> of the element is '<span
title="concept-rtl">rtl</span>'.</p></dd>

Expand All @@ -9661,7 +9667,6 @@ Transport Protocol">HTTP&lt;/abbr> today.&lt;/p></pre> <!-- DO NOT REWRAP THIS L
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
Expand All @@ -9678,14 +9683,9 @@ Transport Protocol">HTTP&lt;/abbr> today.&lt;/p></pre> <!-- DO NOT REWRAP THIS L
<span>the directionality</span> of the element is '<span title="concept-rtl">rtl</span>'.
<a href="#refsBIDI">[BIDI]</a></p>

<p>If the element's <span title="concept-fe-value">value</span> contains a character of
bidirectional character type L, and there is no character of bidirectional character type
AL or R 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-ltr">ltr</span>'.
<a href="#refsBIDI">[BIDI]</a></p>

<p>Otherwise, if the element is a <span>root element</span>, <span>the directionality</span> of
the element is '<span title="concept-ltr">ltr</span>'.</p>
<p>Otherwise, if the element's <span title="concept-fe-value">value</span> is not the empty
string, or if the element is a <span>root element</span>, <span>the directionality</span> of the
element is '<span title="concept-ltr">ltr</span>'.</p>

<p>Otherwise, <span>the directionality</span> of the element is the same as the element's parent
element's <span title="the directionality">directionality</span>.</p>
Expand Down

0 comments on commit 0273463

Please sign in to comment.