diff --git a/source b/source index f04d536fe5d..fb2da13f43d 100644 --- a/source +++ b/source @@ -57597,6 +57597,9 @@ interface HTMLDialogElement : HTMLElement {
  • Add an open attribute to the dialog element, whose value is the empty string.

  • +
  • Set the dialog element's previously focused element to the + focused element.

  • +
  • Run the dialog focusing steps for the dialog element.

  • @@ -57636,6 +57639,9 @@ interface HTMLDialogElement : HTMLElement { data-x="top-layer-add">add subject to subject's node document's top layer.

    +
  • Set the subject's previously focused element to the + focused element.

  • +
  • Run the dialog focusing steps for subject.

  • @@ -57709,6 +57715,20 @@ interface HTMLDialogElement : HTMLElement {
  • If subject is in its Document's top layer, then remove it.

  • +
  • +

    If subject's previously focused element is not null, then:

    + +

      +
    1. Let element be subject's previously focused + element.

    2. + +
    3. Set subject's previously focused element to null.

    4. + +
    5. Run the focusing steps for element; the viewport should not be + scrolled by doing this step.

    6. +
    +
  • +
  • Queue an element task on the user interaction task source given the subject element to fire an event named close at subject.

  • @@ -57743,6 +57763,11 @@ interface HTMLDialogElement : HTMLElement {

    Each dialog element has an is modal flag. When a dialog element is created, this flag must be set to false.

    +

    Each dialog element has a previously focused element which is null or + an element, and it is initially null. When showModal() + and show() are called, this element is set to the currently + focused element before running the dialog focusing steps.

    +

    The open IDL