You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<a>Selection</a> [[!EDITING]] is not defined. Implementation should do their best to do what's best for them. Here's one possible, admittedly naive way:
<p>Since <atitle="node">nodes</a> which are in the different <atitle="node tree">node trees</a> never have the same <a>root</a>, there may never exist a valid <atitle="range">DOM range</a> that spans multiple <atitle="node tree">node trees</a>.</p>
<p>Accordingly, <atitle="selection">selections</a>may only exist within one <a>node tree</a>, because they are defined by a single <a>range</a>. The <a>selection</a>, returned by the <a><code>window.getSelection()</code></a> method never returns a <a>selection</a> within a <a>shadow tree</a>.</p>
<p>If a <a>node</a> doesn’t <atitle="participates">participate</a> in the <a>composed tree</a>, the<a>node</a><strong>must</strong> be skipped from the <a>navigation order</a> [[!CSS3UI]] sequence.</p>
<p>For <a>sequential focus navigation</a>, the <a>navigation order</a> sequence for a given <a>shadow tree</a><var>A</var><strong>must</strong>be inserted into the <a>navigation order</a>for other <a>node tree</a>as follow:</p>
<li>immediately after <var>HOST</var>, if <var>HOST</var> is <a>focusable</a>; or</li>
991
-
<li>in place of the <var>HOST</var>as if <var>HOST</var>were assigned the value of <atitle="nav-index auto"><code>auto</code></a> for determining its position.</li>
<li>Let <var>B</var> be the <a>younger shadow tree</a>relative to <var>A</var></li>
997
-
<li>Let <var>SHADOW</var> be the <a>shadow insertion point</a> in <var>B</var></li>
998
-
<li>If <var>SHADOW</var>exists, the <a>navigation order</a> for <var>A</var><strong>must</strong> be inserted into the <a>navigation order</a> for <var>B</var> immediately after <var>SHADOW</var> as if <var>SHADOW</var>were assigned the value of <atitle="nav-index auto"><code>auto</code></a>for determining its position.</li>
<p>For <a>directional focus navigation</a>, it is up to the user agent to integrate the <atitle="navigation order">navigation orders</a>for<atitle="shadow tree">shadow trees</a>into the <a>document</a><a>navigation order</a>.</p>
<p>To maintain encapsulation, the value of the <atitle="Document object">Document</a>object's focus API property <a>activeElement</a><strong>must</strong> be adjusted. To prevent loss of information when adjusting this value, each<a>shadow root</a><strong>must</strong>also have an <code>activeElement</code>property to store the value of the focused <a>element</a> in the <a>shadow tree</a>.</p>
<p>The <dfn>active<a>element</a>adjustment algorithm</dfn>is used to determine the value of the <a>activeElement</a> property, and it <strong>must</strong> be equivalent to processing the following steps:</p>
<p>The value of the <a><code>contenteditable</code></a> attribute <strong>must not</strong> propagate from <a>shadow host</a>to its<atitle="shadow tree">shadow trees</a>.</p>
<p>User agents with assistive technology traverse the <a>composed tree</a>, and thus enable full use of WAI-ARIA [[!WAI-ARIA]] semantics in the <atitle="shadow tree">shadow trees</a>.</p>
0 commit comments