diff --git a/source b/source index 213f90acbef..484e0b247d6 100644 --- a/source +++ b/source @@ -61905,15 +61905,6 @@ interface HTMLDialogElement : HTMLElement {
  • Add an open attribute to this, whose value is the empty string.

  • -
  • 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.

  • @@ -62084,6 +62075,55 @@ interface HTMLDialogElement : HTMLElement { removedNode's node document's open dialogs list.

    +

    The following attribute change + steps, given element, localName, oldValue, + value, and namespace are used for dialog elements:

    + +
      +
    1. If namespace is not null, then return.

    2. + +
    3. If localName is not open, then + return.

    4. + +
    5. If value is null and oldValue is not null:

      + +
        +
      1. Assert: element's node document's open + dialogs list contains element.

      2. + +
      3. Remove element from element's + node document's open dialogs list.

      4. + +
      5. +

        If element's close watcher is not + null, then:

        + +
          +
        1. Destroy element's close watcher.

        2. + +
        3. Set element's close watcher to + null.

        4. +
        +
      6. +
      +
    6. + +
    7. If value is not null and oldValue is null:

      + +
        +
      1. Assert: element's node document's open + dialogs list does not contain + element.

      2. + +
      3. Add element to this's node document's open + dialogs list.

      4. + +
      5. Set the dialog close watcher with element.

      6. +
      +
    8. +
    +

    To show a modal dialog given a dialog element subject:

      @@ -62127,13 +62167,6 @@ interface HTMLDialogElement : HTMLElement {
    1. Set is modal of subject to true.

    2. -
    3. Assert: subject's node document's open - dialogs list does not contain - subject.

    4. - -
    5. Add subject to subject's node document's open - dialogs list.

    6. -
    7. Let subject's node document be blocked by the modal dialog subject.

      @@ -62150,8 +62183,6 @@ interface HTMLDialogElement : HTMLElement { already contain subject, then add an element to the top layer given subject.

    8. -
    9. Set the dialog close watcher with subject.

    10. -
    11. Set subject's previously focused element to the focused element.

    12. @@ -62178,6 +62209,9 @@ interface HTMLDialogElement : HTMLElement { element dialog:

        +
      1. If dialog's close watcher is not + null, then return.

      2. +
      3. Set dialog's close watcher to the result of establishing a close watcher given @@ -62234,9 +62268,6 @@ interface HTMLDialogElement : HTMLElement {

      4. Set is modal of subject to false.

      5. -
      6. Remove subject from subject's - node document's open dialogs list.

      7. -
      8. If result is not null, then set the returnValue attribute to result.

      9. @@ -62262,19 +62293,6 @@ interface HTMLDialogElement : HTMLElement {
      10. Queue an element task on the user interaction task source given the subject element to fire an event named close at subject.

      11. - -
      12. -

        If subject's close watcher is not null, - then:

        - -
          -
        1. Destroy subject's close watcher.

        2. - -
        3. Set subject's close watcher to - null.

        4. -
        -