diff --git a/source b/source index afb055f3c00..6a20902700c 100644 --- a/source +++ b/source @@ -63281,8 +63281,8 @@ fur button, then set result to submitter's optional value.

-
  • Close the dialog subject with result and - null.

  • +
  • Close the dialog subject with result, null, and + false.

  • Return.

  • @@ -65126,26 +65126,20 @@ interface HTMLDialogElement : HTMLElement { -
    -

    Removing the open attribute will usually hide the - dialog. However, doing so has a number of strange additional consequences: - -

    +
  • If localName is not open, then + return.

  • -

    For these reasons, it is generally better to never remove the open attribute manually. Instead, use the requestClose() or close() methods to close the dialog, or the hidden attribute to hide it.

    +
  • If value is null, then close the dialog given + element, null, null, and true.

  • +

    The tabindex attribute must not be specified on @@ -65266,8 +65260,8 @@ interface HTMLDialogElement : HTMLElement {

    1. If returnValue is not given, then set it to null.

    2. -
    3. Close the dialog this with returnValue and - null.

    4. +
    5. Close the dialog this with returnValue, null, and + false.

    @@ -65293,11 +65287,7 @@ interface HTMLDialogElement : HTMLElement {
  • Hiding a dialog is different from closing one. Closing a dialog gives it a return value, fires an event, unblocks the page for other dialogs, and so on. Whereas hiding a dialog is a purely visual property, and is something you can already do with the hidden attribute or by removing the open attribute. (See also the note above about removing the open attribute, and how hiding the dialog in that way is - generally not desired.)

  • + data-x="attr-hidden">hidden attribute.

  • Showing a dialog is different from opening one. Opening a dialog consists of creating and showing that dialog (similar to how window.open() both @@ -65547,7 +65537,7 @@ interface HTMLDialogElement : HTMLElement {

  • closeAction being to close the dialog given dialog, dialog's request close return - value, and dialog's request close source element.

  • + value, dialog's request close source element, and false.

  • getEnabledState being to return true if dialog's enable close watcher for request close is true or @@ -65585,14 +65575,14 @@ interface HTMLDialogElement : HTMLElement { data-x="attr-button-command-close-state">Close state and element has an open attribute, then close the dialog element with source's optional - value and source.

  • + value and source, and false.

  • If command is in the Request Close state and element has an open attribute, then request to close the dialog element with - source's optional value and - source.

  • + source's optional value, + source, and false.

  • If command is the Show Modal state and element does @@ -65626,12 +65616,12 @@ interface HTMLDialogElement : HTMLElement {

    When a dialog element subject is to be closed, with null or a string result and an Element or null - source, run these steps:

    + dialog">closed, with null or a string result, an Element or null + source, and a boolean removingOpenAttribute, run these steps:

    1. If subject does not have an open - attribute, then return.

    2. + attribute and removingOpenAttribute is false, then return.

    3. Fire an event named beforetoggle, using ToggleEvent, with the HTMLDialogElement : HTMLElement { subject.

    4. If subject does not have an open - attribute, then return.

    5. + attribute, and removingOpenAttribute is false, then return.

    6. Queue a dialog toggle event task given subject, "open", "closed", and source.

    7. -
    8. Remove subject's open - attribute.

    9. +
    10. If removingOpenAttribute is false, then remove subject's open attribute.

    11. If is modal of subject is true, then request an element to be removed from the top layer given subject.

    12. @@ -65666,7 +65656,8 @@ interface HTMLDialogElement : HTMLElement {
    13. Set subject's request close source element to null.

    14. -

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

      +

      If subject's previously focused element is not null and + removingOpenAttribute is false, then:

      1. Let element be subject's previously focused