Skip to content

Commit

Permalink
Merge branch 'whatwg:main' into nrr-add
Browse files Browse the repository at this point in the history
  • Loading branch information
rubberyuzu authored Aug 23, 2024
2 parents ab08735 + cf5565c commit 3e7ca19
Showing 1 changed file with 25 additions and 7 deletions.
32 changes: 25 additions & 7 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -12252,8 +12252,7 @@ document.createElement("bad-1"); // (2)</code></pre>

<li>
<p>If <var>element</var> is an <span data-x="concept-already-constructed-marker"><i>already
constructed</i> marker</span>, then throw an <span>"<code>InvalidStateError</code>"</span>
<code>DOMException</code>.</p>
constructed</i> marker</span>, then throw a <code>TypeError</code>.</p>

<div class="example">
<p>This can occur when the author code inside the <span>custom element
Expand All @@ -12271,7 +12270,7 @@ class DontDoThis extends HTMLElement {
// Now the construction stack will contain an <i>already constructed</i> marker.
}

// This will then fail with an "InvalidStateError" DOMException:
// This will then fail with a TypeError:
super();
}
}</code></pre>
Expand Down Expand Up @@ -13956,8 +13955,10 @@ Transport Protocol">HTTP&lt;/abbr> today.&lt;/p></code></pre> <!-- DO NOT REWRAP
<ol>
<li><p><span>Assert</span>: <var>child</var> is an <code>Element</code> node.</p></li>

<li><p>Set <var>childDirection</var> to the <span>auto directionality</span> of
<var>child</var>.</p></li>
<li><p>Set <var>childDirection</var> to the <span>contained text auto directionality</span>
of <var>child</var> with <i><span
data-x="auto-directionality-can-exclude-root">canExcludeRoot</span></i> set to
true.</p></li>
</ol>
</li>

Expand All @@ -13970,15 +13971,32 @@ Transport Protocol">HTTP&lt;/abbr> today.&lt;/p></code></pre> <!-- DO NOT REWRAP
</ol>
</li>

<li><p>Return the <span>contained text auto directionality</span> of <var>element</var> with
<i><span data-x="auto-directionality-can-exclude-root">canExcludeRoot</span></i> set to
false.</p></li>
</ol>

<p>To compute the <dfn>contained text auto directionality</dfn> of an element
<var>element</var> with a boolean <dfn
data-x="auto-directionality-can-exclude-root"><var>canExcludeRoot</var></dfn>:</p>

<ol>
<li>
<p><span data-x="list iterate">For each</span> node <var>descendant</var> of
<var>element</var>'s <span data-x="descendant">descendants</span>, in <span>tree
order</span>:</p>

<ol>
<li>
<p>If <var>descendant</var>, or any of its ancestor elements that are descendants of
<var>element</var>, is one of</p>
<p>If any of</p>

<ul class="brief">
<li><var>descendant</var></li>
<li>any ancestor element of <var>descendant</var> that is a descendant of <var>element</var></li>
<li>if <var>canExcludeRoot</var> is true, <var>element</var></li>
</ul>

<p>is one of</p>

<ul class="brief">
<li>a <code>bdi</code> element</li>
Expand Down

0 comments on commit 3e7ca19

Please sign in to comment.