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
"html": "The <dfn data-dfn-for=\"DocumentOrShadowRoot\" id=\"dom-documentorshadowroot-activeelement\" data-dfn-type=\"attribute\"><code>activeElement</code></dfn> attribute's getter must\n run these steps:",
"html": "<p>Let <var>candidate</var> be the <a href=\"https://html.spec.whatwg.org/multipage/interaction.html#dom-anchor\" id=\"focus-management-apis:dom-anchor\">DOM anchor</a> of the <a href=\"https://html.spec.whatwg.org/multipage/interaction.html#focused-area-of-the-document\" id=\"focus-management-apis:focused-area-of-the-document\">focused area</a> of this <code id=\"focus-management-apis:documentorshadowroot\"><a href=\"https://html.spec.whatwg.org/multipage/dom.html#documentorshadowroot\">DocumentOrShadowRoot</a></code>'s <a id=\"focus-management-apis:node-document-2\" href=\"https://dom.spec.whatwg.org/#concept-node-document\" data-x-internal=\"node-document\">node\n document</a>.</p>"
"html": "<p>Set <var>candidate</var> to the result of <a href=\"https://dom.spec.whatwg.org/#retarget\" id=\"focus-management-apis:dom-retarget\" data-x-internal=\"dom-retarget\">retargeting</a>\n <var>candidate</var> against this <code id=\"focus-management-apis:documentorshadowroot-2\"><a href=\"https://html.spec.whatwg.org/multipage/dom.html#documentorshadowroot\">DocumentOrShadowRoot</a></code>.</p>"
19117
+
"html": "<p>Set <var>candidate</var> to the result of <a href=\"https://dom.spec.whatwg.org/#retarget\" id=\"focus-management-apis:dom-retarget\" data-x-internal=\"dom-retarget\">retargeting</a>\n <var>candidate</var> against <a id=\"focus-management-apis:this-2\" href=\"https://webidl.spec.whatwg.org/#this\" data-x-internal=\"this\">this</a>.</p>"
19118
19118
},
19119
19119
{
19120
-
"html": "<p>If <var>candidate</var>'s <a id=\"focus-management-apis:root\" href=\"https://dom.spec.whatwg.org/#concept-tree-root\" data-x-internal=\"root\">root</a> is not this <code id=\"focus-management-apis:documentorshadowroot-3\"><a href=\"https://html.spec.whatwg.org/multipage/dom.html#documentorshadowroot\">DocumentOrShadowRoot</a></code>,\n then return null.</p>"
19120
+
"html": "<p>If <var>candidate</var>'s <a id=\"focus-management-apis:root\" href=\"https://dom.spec.whatwg.org/#concept-tree-root\" data-x-internal=\"root\">root</a> is not <a id=\"focus-management-apis:this-3\" href=\"https://webidl.spec.whatwg.org/#this\" data-x-internal=\"this\">this</a>, then return\n null.</p>"
19121
19121
},
19122
19122
{
19123
19123
"html": "<p>If <var>candidate</var> is not a <code id=\"focus-management-apis:document-2\"><a href=\"https://html.spec.whatwg.org/multipage/dom.html#document\">Document</a></code> object, then return\n <var>candidate</var>.</p>"
"html": "The <dfn data-dfn-for=\"Window\" id=\"dom-window-focus\" data-dfn-type=\"method\"><code>focus()</code></dfn> method, when\n invoked, must run these steps:",
"html": "The <dfn data-dfn-for=\"HTMLOrSVGElement\" id=\"dom-focus\" data-dfn-type=\"method\"><code>focus(<var>options</var>)</code></dfn>\n method on elements, when invoked, must run the following steps:",
"html": "<p>If the <a href=\"https://html.spec.whatwg.org/multipage/interaction.html#allow-focus-steps\" id=\"focus-management-apis:allow-focus-steps-2\">allow focus steps</a> given the element's <a id=\"focus-management-apis:node-document-3\" href=\"https://dom.spec.whatwg.org/#concept-node-document\" data-x-internal=\"node-document\">node document</a>\n return false, then return.</p>"
19166
+
"html": "<p>If the <a href=\"https://html.spec.whatwg.org/multipage/interaction.html#allow-focus-steps\" id=\"focus-management-apis:allow-focus-steps-2\">allow focus steps</a> given <a id=\"focus-management-apis:this-6\" href=\"https://webidl.spec.whatwg.org/#this\" data-x-internal=\"this\">this</a>'s <a id=\"focus-management-apis:node-document-3\" href=\"https://dom.spec.whatwg.org/#concept-node-document\" data-x-internal=\"node-document\">node document</a>\n return false, then return.</p>"
19167
19167
},
19168
19168
{
19169
-
"html": "<p>If the element is marked as <i id=\"focus-management-apis:locked-for-focus\"><a href=\"https://html.spec.whatwg.org/multipage/interaction.html#locked-for-focus\">locked for focus</a></i>, then return.</p>"
19169
+
"html": "<p>Run the <a href=\"https://html.spec.whatwg.org/multipage/interaction.html#focusing-steps\" id=\"focus-management-apis:focusing-steps-2\">focusing steps</a> for <a id=\"focus-management-apis:this-7\" href=\"https://webidl.spec.whatwg.org/#this\" data-x-internal=\"this\">this</a>.</p>"
19170
19170
},
19171
19171
{
19172
-
"html": "<p>Mark the element as <dfnid=\"locked-for-focus\">locked for focus</dfn>.</p>"
19172
+
"html": "<p>If <var>options</var>[\"<dfn data-dfn-for=\"FocusOptions\" id=\"dom-focusoptions-focusvisible\" data-dfn-type=\"dict-member\"><code>focusVisible</code></dfn>\"] is true, or does not <a href=\"https://infra.spec.whatwg.org/#map-exists\" id=\"focus-management-apis:map-exists\" data-x-internal=\"map-exists\">exist</a> but in an <a id=\"focus-management-apis:implementation-defined-2\" href=\"https://infra.spec.whatwg.org/#implementation-defined\" data-x-internal=\"implementation-defined\">implementation-defined</a> way the user agent\n determines it would be best to do so, then <a id=\"focus-management-apis:indicate-focus-2\" href=\"https://drafts.csswg.org/selectors/#indicate-focus\" data-x-internal=\"indicate-focus\">indicate focus</a>.</p>"
19173
19173
},
19174
19174
{
19175
-
"html": "<p>Run the <a href=\"https://html.spec.whatwg.org/multipage/interaction.html#focusing-steps\" id=\"focus-management-apis:focusing-steps-2\">focusing steps</a> for the element.</p>"
19176
-
},
19177
-
{
19178
-
"html": "<p>If the value of the <dfn data-dfn-for=\"FocusOptions\" id=\"dom-focusoptions-focusvisible\" data-dfn-type=\"dict-member\"><code>focusVisible</code></dfn> dictionary member of\n <var>options</var> is true, or is not present but in an <a id=\"focus-management-apis:implementation-defined\" href=\"https://infra.spec.whatwg.org/#implementation-defined\" data-x-internal=\"implementation-defined\">implementation-defined</a> way\n the user agent determines it would be best to do so, then <a id=\"focus-management-apis:indicate-focus\" href=\"https://drafts.csswg.org/selectors/#indicate-focus\" data-x-internal=\"indicate-focus\">indicate focus</a>.</p>"
19179
-
},
19180
-
{
19181
-
"html": "<p>If the value of the <dfn data-dfn-for=\"FocusOptions\" id=\"dom-focusoptions-preventscroll\" data-dfn-type=\"dict-member\"><code>preventScroll</code></dfn> dictionary member of\n <var>options</var> is false, then <a href=\"https://drafts.csswg.org/cssom-view/#scroll-a-target-into-view\" id=\"focus-management-apis:scroll-a-target-into-view\" data-x-internal=\"scroll-a-target-into-view\">scroll the element\n into view</a> given \"auto\", \"center\", and \"center\".</p>"
19182
-
},
19183
-
{
19184
-
"html": "<p>Unmark the element as <i id=\"focus-management-apis:locked-for-focus-2\"><a href=\"https://html.spec.whatwg.org/multipage/interaction.html#locked-for-focus\">locked for focus</a></i>.</p>"
19175
+
"html": "<p>If <var>options</var>[\"<dfn data-dfn-for=\"FocusOptions\" id=\"dom-focusoptions-preventscroll\" data-dfn-type=\"dict-member\"><code>preventScroll</code></dfn>\"] is false, then <a id=\"focus-management-apis:scroll-a-target-into-view\" href=\"https://drafts.csswg.org/cssom-view/#scroll-a-target-into-view\" data-x-internal=\"scroll-a-target-into-view\">scroll\n a target into view</a> given <a id=\"focus-management-apis:this-8\" href=\"https://webidl.spec.whatwg.org/#this\" data-x-internal=\"this\">this</a>, \"<code>auto</code>\", \"<code>center</code>\", and \"<code>center</code>\".</p>"
"html": "The <dfn id=\"allow-focus-steps\" data-export=\"\">allow focus steps</dfn>, given a <code id=\"focus-management-apis:document-5\"><a href=\"https://html.spec.whatwg.org/multipage/dom.html#document\">Document</a></code> object<var>target</var>,\n are as follows:",
19182
+
"html": "The <dfn id=\"allow-focus-steps\" data-export=\"\">allow focus steps</dfn>, given a <code id=\"focus-management-apis:document-4\"><a href=\"https://html.spec.whatwg.org/multipage/dom.html#document\">Document</a></code> object\n <var>target</var>,are:",
19192
19183
"rationale": "if",
19193
19184
"steps": [
19194
19185
{
19195
19186
"html": "<p>If <var>target</var> is <a id=\"focus-management-apis:allowed-to-use\" href=\"https://html.spec.whatwg.org/multipage/iframe-embed-object.html#allowed-to-use\">allowed to use</a> the \"<code id=\"focus-management-apis:focus-without-user-activation-feature\"><a href=\"https://html.spec.whatwg.org/multipage/infrastructure.html#focus-without-user-activation-feature\">focus-without-user-activation</a></code>\" feature,\n then return true.</p>"
19196
19187
},
19197
19188
{
19198
-
"html": "<p>If any of the following are true:</p>\n\n <ul><li><p><var>target</var>'s <a id=\"focus-management-apis:concept-relevant-global\" href=\"https://html.spec.whatwg.org/multipage/webappapis.html#concept-relevant-global\">relevant global object</a> has <a href=\"https://html.spec.whatwg.org/multipage/interaction.html#transient-activation\" id=\"focus-management-apis:transient-activation\">transient user activation</a>; or</p></li><li><p><var>target</var>'s <a id=\"focus-management-apis:node-navigable\" href=\"https://html.spec.whatwg.org/multipage/document-sequences.html#node-navigable\">node navigable</a>'s <a href=\"https://html.spec.whatwg.org/multipage/document-sequences.html#nav-container\" id=\"focus-management-apis:nav-container-2\">container</a>,\n if any, is marked as <i id=\"focus-management-apis:locked-for-focus-3\"><a href=\"https://html.spec.whatwg.org/multipage/interaction.html#locked-for-focus\">locked for focus</a></i>,</p></li></ul>\n\n <p>then return true.</p>"
19189
+
"html": "<p>If <var>target</var>'s <a id=\"focus-management-apis:concept-relevant-global\" href=\"https://html.spec.whatwg.org/multipage/webappapis.html#concept-relevant-global\">relevant global object</a> has <a href=\"https://html.spec.whatwg.org/multipage/interaction.html#transient-activation\" id=\"focus-management-apis:transient-activation\">transient\n activation</a>, then return true.</p>"
0 commit comments