


























@@ -37,7 +37,6 @@ spec: html; urlPrefix: https://html.spec.whatwg.org/multipage/;
3737 text: sequential focus navigation order
3838 text: sequential focus navigation starting point
3939 text: sequential navigation search algorithm
40- text: tabindex; url: #attr-tabindex
4140 urlPrefix: rendering.html
4241 type: dfn;
4342 text: being rendered; url: #being-rendered
@@ -73,7 +72,8 @@ spec: css2; urlPrefix: https://drafts.csswg.org/css2/
7372 text: painting order; url: #painting-order
7473</pre>
7574<pre class=link-defaults>
76-spec:html; type:method; for:HTMLOrSVGElement; text:focus()
75+spec:html; type:method; for:HTMLOrSVGOrMathMLElement; text:focus()
76+spec:dom; type:dfn; for:/; text:document
7777</pre>
7878<style>
7979code.key {
@@ -253,7 +253,7 @@ the user agent will fire events.
253253These enable the author to prevent the upcoming action
254254(by calling {{preventDefault()}}),
255255and if desired to provide an alternate action,
256-such as using the {{HTMLOrSVGElement/focus()}} method on a different
256+such as using the {{focus()}} method on a different
257257element of the author's choosing.
258258259259To help the author write such alternate actions,
@@ -509,7 +509,7 @@ the user agent must run the steps described below:
509509: <dfn method for=Element lt="getSpatialNavigationContainer()">getSpatialNavigationContainer()</dfn>
510510::
511511 1. Return the nearest ancestor of the element that is a <a>spatial navigation container</a>,
512- or the <a>document</a> if the nearest <a>spatial navigation container</a> is the viewport.
512+ or the [=/document=] if the nearest <a>spatial navigation container</a> is the viewport.
513513514514 Note: If the element is a <a>spatial navigation container</a>, {{getSpatialNavigationContainer()}} also returns
515515 the nearest <a>spatial navigation container</a>, not the element itself.
@@ -655,7 +655,7 @@ The <a>event target</a> is the element which has focus and
655655the {{NavigationEvent/relatedTarget}} is the element which is about to receive focus.
656656657657If <a>navigation-override</a> is disabled in the [=node document=] of <var>eventTarget</var> for
658-the <a spec=html for="/">origin</a> of the [=active document=] of the [=top-level browsing context=], this event won't be dispatched.
658+the [=/origin=] of the [=active document=] of the [=top-level browsing context=], this event won't be dispatched.
659659660660<div class='example'>
661661 This example shows the [=event order=] when pressing the <code class=key>ArrowRight</code>
@@ -1507,7 +1507,7 @@ or of its nearest [=scroll container=] ancestor if it isn't.
15071507 to move the focus to a [=scroll container=] and to scroll it,
15081508 but not to move the focus to its descendants.
15091509 However, if the focus is moved to a descendant by some other mean
1510- (such as pressing the <span class=key>Tab</span> key or using the <{{HTMLOrSVGElement/focus()}}> method)
1510+ (such as pressing the <span class=key>Tab</span> key or using the <{{focus()}}> method)
15111511 spatial navigation can be used to move the focus to other focusable descendants.
1512151215131513 Note: The ''spatial-navigation-ation/scroll'' value is <a>at-risk</a>.
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。