From 5ee57c0b0901f43d6853f0548c8597d8b708bae3 Mon Sep 17 00:00:00 2001
From: Fernando Fiori If the allow focus steps given subject's node
- document return false, then return.
Let control be null.
The focusing steps for an object new focus target that is either a focusable area, or an element that is not a focusable area, or a navigable, are as follows. They can optionally be run with a fallback - target and a string focus trigger.
+ target, a string focus trigger, and aDocument-or-null
+ source (default null). They return false if the focus change was refused by the
+ allow focus steps, and true otherwise; true does not imply that the focus moved.
If new focus target is null:
If no fallback target was specified, then return.
If no fallback target was specified, then return true.
Otherwise, set new focus target to the fallback target.
If source is not null:
+ +If new focus target is a Document, then let
+ targetDocument be new focus target. Otherwise, let
+ targetDocument be new focus target's DOM anchor's
+ node document.
If the allow focus steps given targetDocument and + source return false, then return false.
If new focus target is a focusable area and its DOM - anchor is inert, then return.
If new focus target is the currently focused area of a top-level - traversable, then return.
Let old chain be the current focus chain of the top-level traversable in which new focus
@@ -86790,6 +86807,8 @@ dictionary CommandEventInit : EventInit {
Run the focus update steps with old chain, new chain,
and new focus target respectively. Return true.
If current is null, then return.
If the allow focus steps given current's active document return false, then return.
Run the focusing steps with current.
If running the focusing steps with current, with the focus + source as the source, returns false, then return.
If current is a top-level traversable, user agents are encouraged to trigger some sort of notification to indicate to the user that the page is attempting to gain @@ -87430,10 +87447,8 @@ dictionary CommandEventInit : EventInit { data-x="dom-focus">focus(options) method steps are:
If the allow focus steps given this's node document - return false, then return.
Run the focusing steps for this.
If running the focusing steps for this, with this's + node document as the source, returns false, then return.
If options[" The allow focus steps, given a The focus source is the Let global be the incumbent global
+ object. If global is not a Return global's associated
+ The allow focus steps, given a If target is allowed to use the " If target's relevant global object has transient
activation, then return true. If target's node navigable is null, then return false. If running the has focus steps given target returns true, then
+ return true. If source is null or source's node navigable is null,
+ then return false. If source's inclusive descendant navigables does not contain target's node navigable, then
+ return false. If source is allowed to use the " If source's relevant global object has transient
+ activation, then return true. If running the has focus steps given source returns true, then
+ return true. Return false. If target's active sandboxing flag set has the
sandboxed automatic features browsing context flag, then return. If the allow focus steps given target return false, then
- return. If the allow focus steps given target and target return
+ false, then return. Let topDocument be target's node navigable's top-level traversable's active
@@ -93006,7 +93058,8 @@ dictionary DragEventInit : MouseEventInit {
If the allow focus steps given subject's node
- document return false, then return. If subject is a focusVisible"] is true, or does not CommandEventInit : EventInit {
Document object
- target, are:Document object or null returned by these
+ steps:
+
+ Window object, then return null.Document.Document object target
+ and a Document-or-null source, are:
CommandEventInit : EventInit {
focus-without-user-activation" feature,
+ then return true.
and subject's node document return false, then
+ return.dialog element, then run the dialog focusing
steps given subject and return.