Skip to content

Commit

Permalink
Abstract out the parent directionality as well
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk committed Jul 24, 2023
1 parent 3ea72f7 commit d985055
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -13473,10 +13473,7 @@ Transport Protocol">HTTP&lt;/abbr> today.&lt;/p></code></pre> <!-- DO NOT REWRAP
data-x="attr-input-type-tel">Telephone</span> state, then return '<span
data-x="concept-ltr">ltr</span>'.</p></li>

<li><p>If <var>element</var> has no parent element, then return '<span
data-x="concept-ltr">ltr</span>'.</p></li>

<li><p>Return <span>the directionality</span> with <var>element</var>'s parent.</p></li>
<li><p>Return <span>the parent directionality</span> with <var>element</var>.</p></li>
</ol>
</dd>
</dl>
Expand All @@ -13500,10 +13497,9 @@ Transport Protocol">HTTP&lt;/abbr> today.&lt;/p></code></pre> <!-- DO NOT REWRAP
<ref spec=BIDI></p></li>

<li><p>If <var>element</var>'s <span data-x="concept-fe-value">value</span> is not the empty
string or <var>element</var> has no parent element, then return '<span
data-x="concept-ltr">ltr</span>'.</p></li>
string, then return '<span data-x="concept-ltr">ltr</span>'.</p></li>

<li><p>Return <span>the directionality</span> with <var>element</var>'s parent.</p></li>
<li><p>Return <span>the parent directionality</span> with <var>element</var>.</p></li>
</ol>
</li>

Expand Down Expand Up @@ -13541,6 +13537,12 @@ Transport Protocol">HTTP&lt;/abbr> today.&lt;/p></code></pre> <!-- DO NOT REWRAP
<li><p>If <var>codePoint</var> is non-null and it is of bidirectional character type L, then
return '<span data-x="concept-ltr">ltr</span>'.</p></li>

<li><p>Return <span>the parent directionality</span> with <var>element</var>.</p></li>
</ol>

<p>To compute <dfn>the parent directionality</dfn> given an element <var>element</var>:</p>

<ol>
<li><p>If <var>element</var> has no parent element, then return '<span
data-x="concept-ltr">ltr</span>'.</p></li>

Expand All @@ -13549,9 +13551,7 @@ Transport Protocol">HTTP&lt;/abbr> today.&lt;/p></code></pre> <!-- DO NOT REWRAP

<p class="note">Since the <code data-x="attr-dir">dir</code> attribute is only defined for
<span>HTML elements</span>, it cannot be present on elements from other namespaces. Thus, elements
from other namespaces always just inherit their <span data-x="the
directionality">directionality</span> from their parent element, or, if they don't have one,
default to '<span data-x="concept-ltr">ltr</span>'.</p>
from other namespaces always end up using <span>the parent directionality</span>.</p>

<div w-nodev>

Expand Down

0 comments on commit d985055

Please sign in to comment.