From 9050376fcd3b565b4281a4d1919cd56365eb1e0c Mon Sep 17 00:00:00 2001
From: Keith Cirkel The showModal()
method steps are:
To show a modal dialog given a dialog
element subject:
If this has an open
attribute and
- is modal of this is true, then return.
If subject has an open
attribute and
+ is modal of subject is true, then return.
If this has an open
attribute, then
+
If subject has an open
attribute, then
throw an "InvalidStateError
" DOMException
.
If this's node document is not fully active, then +
If subject's node document is not fully active, then
throw an "InvalidStateError
" DOMException
.
If this is not connected, then throw an +
If subject is not connected, then throw an
"InvalidStateError
" DOMException
.
If this is in the popover showing
+ If subject is in the popover showing
state, then throw an "InvalidStateError
"
DOMException
.oldState
attribute initialized to "closed
", and the newState
- attribute initialized to "open
" at this is false, then
+ attribute initialized to "open
" at subject is false, then
return.
If this has an open
attribute,
+
If subject has an open
attribute,
then return.
If this is not connected, then return.
If subject is not connected, then return.
If this is in the popover showing
+ If subject is in the popover showing
state, then return. Queue a dialog toggle event task given subject, " Add an Add an Set is modal of this to true. Set is modal of subject to true. Assert: this's node document's open
+ Assert: subject's node document's open
dialogs list does not contain
- this. Add this to this's node document's open
+ Add subject to subject's node document's open
dialogs list. Let this's node document be blocked by the modal dialog this. Let subject's node document be blocked by the modal dialog subject. This will cause the focused area of the
document to become inert (unless that currently focused area is a
@@ -62022,23 +62025,23 @@ interface HTMLDialogElement : HTMLElement {
focus. If this's node document's top layer does not
- already contain this, then add an element
- to the top layer given this. If subject's node document's top layer does not
+ already contain subject, then add an element
+ to the top layer given subject. Set the dialog close watcher with this. Set the dialog close watcher with subject. Set this's previously focused element to the
+ Set subject's previously focused element to the
focused element. Let document be this's node document. Let document be subject's node document. Let hideUntil be the result of running topmost popover ancestor
- given this, document's showing hint popover list, null, and
+ given subject, document's showing hint popover list, null, and
false. If hideUntil is null, then set hideUntil to the result of running
- topmost popover ancestor given this, document's
+ topmost popover ancestor given subject, document's
showing auto popover list, null, and false. If hideUntil is null, then set hideUntil to
@@ -62047,7 +62050,7 @@ interface HTMLDialogElement : HTMLElement {
Run hide all popovers until given
hideUntil, false, and true. Run the dialog focusing steps given this. Run the dialog focusing steps given subject.closed
", and "open
".open
attribute to this, whose
+ open
attribute to subject, whose
value is the empty string.
To set the dialog close watcher, given a dialog
@@ -62061,9 +62064,10 @@ interface HTMLDialogElement : HTMLElement {
cancelAction given
- canPreventClose being to return the result of firing
- an event named cancel
at dialog, with the
- cancelable
attribute initialized to
+ canPreventClose being to return the result of firing an event named cancel
at dialog, with the cancelable
attribute initialized to
canPreventClose.
closeAction being to close the