Skip to content

Commit

Permalink
address several of anne's nits and remove the claim that we are switc…
Browse files Browse the repository at this point in the history
…hing based on value
  • Loading branch information
bkardell committed Jul 14, 2023
1 parent 8ffd111 commit 1abc8a8
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -13423,6 +13423,7 @@ Transport Protocol">HTTP&lt;/abbr> today.&lt;/p></code></pre> <!-- DO NOT REWRAP
<dd>
<p>The element's <span data-x="the directionality">directionality</span> is determined as
follows:</p>

<dl class="switch">
<dt>If the element is an <code>input</code> element whose <code
data-x="attr-input-type">type</code> attribute is in the <span
Expand All @@ -13432,36 +13433,34 @@ Transport Protocol">HTTP&lt;/abbr> today.&lt;/p></code></pre> <!-- DO NOT REWRAP
data-x="attr-input-type-email">Email</span> state</dt>
<dt>If the element is a <code>textarea</code> element</dt>
<dd>
<p>The element's <span data-x="the directionality">directionality</span> is determined
based on the element's <span data-x="concept-fe-value">value</span> via the following steps:
</p>
<dl class="switch">
<dt>If the element's <span data-x="concept-fe-value">value</span> contains a character of
<p>The element's <span data-x="the directionality">directionality</span> is determined
via the following steps:</p>
<dl class="switch">
<dt>If the element's <span data-x="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 data-x="concept-fe-value">value</span></dt>
<dd><span>The directionality</span> of the element is '<span
<dd><span>The directionality</span> of the element is '<span
data-x="concept-rtl">rtl</span>' <ref spec=BIDI>.

<dt>If the element's <span data-x="concept-fe-value">value</span> is the empty string, or if
<dt>If the element's <span data-x="concept-fe-value">value</span> is the empty string, or if
the element has no parent element</dt>
<dd><span>The directionality</span> of the element is '<span
<dd><span>The directionality</span> of the element is '<span
data-x="concept-ltr">ltr</span>'.</dd>

<dt>Otherwise</dt>
<dd><span>the directionality</span> of the element is the same as the element's parent
<dt>Otherwise</dt>
<dd><span>the directionality</span> of the element is the same as the element's parent
element's <span data-x="the directionality">directionality</span>.</dd>

</dl>
</dd>
</dl>
</dd>

<dt>Otherwise</dt>
<dt>Otherwise</dt>
<dd>
<p><span>The directionality</span> is determined from the element's contents as follows:</p>
<ol>
<li><p>Let <var>b</var> be the first (in <span>tree order</span>)
<span>bidi-available</span> <code>slot</code> element or <span>strong character</span>
found among its slotted elements and <code>Text</code> nodes
(including their descendants)</p>
<span>bidi-available</span> <span>strong character</span>
found among its <code>Text</code> nodes (including their descendants)</p>
</li>
<li>
<p>Determine <span>the directionality</span> from <var>b</var> as follows:</p>
Expand Down

0 comments on commit 1abc8a8

Please sign in to comment.