From b33d44fd24d5021cb0f94701afa359d923a9f841 Mon Sep 17 00:00:00 2001
From: Fernando Fiori
If validity is true, then run the show popover - algorithm given target, false, and element.
Otherwise:
@@ -56961,7 +56962,8 @@ interface HTMLButtonElement : HTMLElement { validity be false.If validity is true, then run the show popover - algorithm given target, false, and element.
Run the show popover algorithm given select's select - popover, false, and select.
Let focusSetterDocument be the incumbent global object's associated Document.
If this has an open attribute and
is modal of this is false, then return.
Run hide popovers until given document, hideUntil, false, and true.
Run the dialog focusing steps given this.
Run the dialog focusing steps given this and + focusSetterDocument.
The showModal() method steps are to show a modal
- dialog given this and null.
Let focusSetterDocument be the incumbent global object's associated Document.
Show a modal dialog given this, null, and + focusSetterDocument.
To show a modal dialog given a dialog element subject and an
- Element or null source:
To show a modal dialog given a dialog element subject, an
+ Element or null source, and a Document
+ focusSetterDocument:
If subject has an open attribute and
@@ -66700,7 +66717,8 @@ interface HTMLDialogElement : HTMLElement {
Run hide popovers until given document, hideUntil, false, and true.
Run the dialog focusing steps given subject.
Run the dialog focusing steps given subject and + focusSetterDocument.
If command is the Show Modal state and element does
not have an open attribute, then
- show a modal dialog given element and source.
The dialog focusing steps, given a dialog element subject,
- are as follows:
The dialog focusing steps, given a dialog element subject
+ and a Document focusSetterDocument, are as follows:
If the allow focus steps given subject's node - document return false, then return.
If the allow focus steps given focusSetterDocument return false, + then return.
Let control be null.
If current is null, then return.
If the allow focus steps given current's active document return false, then return.
Let focusSetterDocument be the incumbent global object's associated Document.
If the allow focus steps given focusSetterDocument return false, + then return.
Run the focusing steps with current.
If the allow focus steps given this's node document - return false, then return.
Let focusSetterDocument be the incumbent global object's associated Document.
If the allow focus steps given focusSetterDocument return false, + then return.
Run the focusing steps for this.
The allow focus steps, given a Document object
- target, are:
If target is allowed to use the " If focusSetterDocument is allowed to use the "focus-without-user-activation" feature,
then return true.
If target's relevant global object has transient - activation, then return true.
If focusSetterDocument's relevant global object has + transient activation, then return true.
Return false.
If focusSetterDocument is not fully active, then return + false.
Let focusSetterOrDescendantHasFocus be false.
For each navigable in the inclusive descendant navigables of + focusSetterDocument:
+ +Let descendantDocument be navigable's active document.
If running the has focus steps given descendantDocument returns + true:
+ +If descendantDocument's fullscreen element is not null, then + return false.
Set focusSetterOrDescendantHasFocus to true.
Return focusSetterOrDescendantHasFocus.
Let focusSetterDocument be the incumbent global object's associated Document.
Let source be options["source"] if it exists; otherwise, null.
Run show popover given this, true, and - source.
Run show popover given this, true, source, and + focusSetterDocument.
To show popover, given an HTML element - element, a boolean throwExceptions, and an HTML - element or null source:
+ element, a boolean throwExceptions, an HTML + element or null source, and aDocument
+ focusSetterDocument:
Let document be element's node document.
Set element's implicit anchor element to source.
Run the popover focusing steps given element.
Run the popover focusing steps given element and + focusSetterDocument.
If shouldRestoreFocus is true and element's popover attribute is not in the DragEventInit : MouseEventInit {
data-x="dom-togglePopover">togglePopover(options) method steps are:
Let focusSetterDocument be the incumbent global object's associated Document.
Let force be null.
If options is a boolean, set force to options.
Otherwise, if force is null or true, then run show popover given - this, true, and source.
Otherwise:
@@ -93002,14 +93066,15 @@ dictionary DragEventInit : MouseEventInit {To perform the popover focusing steps for an HTML - element subject:
+ element subject and aDocument
+ focusSetterDocument:
If the allow focus steps given subject's node - document return false, then return.
If the allow focus steps given focusSetterDocument return false, + then return.
If subject is a dialog element, then run the dialog focusing
- steps given subject and return.
If subject has the autofocus
attribute, then let control be subject.
@@ -93292,7 +93357,8 @@ dictionary DragEventInit : MouseEventInit {
validity be false.
If validity is true, then run show popover given - popover, false, and node.
Document focusSetterDocument, are as follows:
If subject's node document is not fully active, then + return.
If the allow focus steps given focusSetterDocument return false, then return.
If focusSetterDocument is not fully active, then return false.
Let focusSetterOrDescendantHasFocus be false.
For each navigable in the inclusive descendant navigables of focusSetterDocument:
@@ -87522,21 +87520,12 @@ dictionary CommandEventInit : EventInit {Let descendantDocument be navigable's active document.
If running the has focus steps given descendantDocument returns - true:
- -If descendantDocument's fullscreen element is not null, then - return false.
Set focusSetterOrDescendantHasFocus to true.
If running the has focus steps given descendantDocument returns + true, then return true.
Return focusSetterOrDescendantHasFocus.
Return false.
If subject's node document is not fully active, then return.
If the allow focus steps given focusSetterDocument return false, - then return.
If the allow focus steps given subject's node + document and focusSetterDocument return false, then return.
Let control be null.
Document.If the allow focus steps given focusSetterDocument return false, +
If the allow focus steps given current's active document and focusSetterDocument return false, then return.
Run the focusing steps with current.
Document.
- If the allow focus steps given focusSetterDocument return false, - then return.
If the allow focus steps given this's node + document and focusSetterDocument return false, then return.
Run the focusing steps for this.
The allow focus steps, given a Document object
- focusSetterDocument, are:
The allow focus steps, given a Document object target
+ and a Document object focusSetterDocument, are:
If focusSetterDocument is allowed to use the " If target is allowed to use the "focus-without-user-activation" feature,
then return true.
If focusSetterDocument's relevant global object has - transient activation, then return true.
If target's relevant global object has transient + activation, then return true.
If target is not fully active, then return false.
If running the has focus steps given target returns true, then + return true.
If focusSetterDocument is not fully active, then return false.
For each navigable in the inclusive descendant navigables of - focusSetterDocument:
+If focusSetterDocument's inclusive descendant navigables does not + contain target's node navigable, then + return false.
Let descendantDocument be navigable's active document.
If focusSetterDocument is allowed to use the "focus-without-user-activation" feature,
+ then return true.
If running the has focus steps given descendantDocument returns - true, then return true.
If focusSetterDocument's relevant global object has + transient activation, then return true.
If running the has focus steps given focusSetterDocument 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 @@ -93062,8 +93069,8 @@ dictionary DragEventInit : MouseEventInit { focusSetterDocument:
If the allow focus steps given focusSetterDocument return false, - then return.
If the allow focus steps given subject's node + document and focusSetterDocument return false, then return.
If subject is a dialog element, then run the dialog focusing
steps given subject and focusSetterDocument, and return.