From c85fb47b1b14490521bec65a4b718b7f25a1b98e Mon Sep 17 00:00:00 2001
From: Luke Warlow
The following attribute change
+ steps, given element, localName, oldValue,
+ value, and namespace are used for dialog
elements:
If namespace is not null, then return.
If localName is not open
, then
+ return.
If value is null:
+ +Remove element from element's + node document's open dialogs list.
If element's close watcher is not + null, then:
+ +Destroy element's close watcher.
Set element's close watcher to + null.
To show a modal dialog given a dialog
element subject:
Assert: dialog's close + watcher is null.
Set dialog's close watcher to the
result of establishing a close watcher given
From 376c837f99ab031b60096312fc930e346e335b61 Mon Sep 17 00:00:00 2001
From: Luke Warlow
Assert: dialog's close - watcher is null.
If dialog's close watcher is not + null, then return.
Set dialog's close watcher to the
From b84aabe32f4dbf83c4ad998c46e5182e98642ec0 Mon Sep 17 00:00:00 2001
From: Luke Warlow Add an Assert: this's node document's open
- dialogs list does not contain
- this. Add this to this's node document's open
- dialogs list. Set the dialog close watcher with this. Set this's previously focused element to the
focused element. If localName is not If value is null: If value is null and oldValue is not null: Assert: element's node document's open
+ dialogs list contains
+ element. Remove element from element's
node document's open dialogs list.open
attribute to this, whose
value is the empty string.open
, then
return.
+
If value is not null and oldValue is null:
+ +Assert: element's node document's open + dialogs list does not contain + element.
Add element to this's node document's open + dialogs list.
Set the dialog close watcher with element.
To show a modal dialog given a dialog
element subject:
Set is modal of subject to true.
Assert: subject's node document's open - dialogs list does not contain - subject.
Add subject to subject's node document's open - dialogs list.
Let subject's node document be blocked by the modal dialog subject.
@@ -62182,8 +62184,6 @@ interface HTMLDialogElement : HTMLElement { already contain subject, then add an element to the top layer given subject.Set the dialog close watcher with subject.
Set subject's previously focused element to the focused element.
Set is modal of subject to false.
Remove subject from subject's - node document's open dialogs list.
If result is not null, then set the returnValue
attribute to result.
Queue an element task on the user interaction task source given the
subject element to fire an event named
close
at subject.
If subject's close watcher is not null, - then:
- -Destroy subject's close watcher.
Set subject's close watcher to - null.
Assert: element's node document's open - dialogs list contains - element.
Remove element from element's node document's open dialogs list.