diff --git a/source b/source index c674496762c..211176d06de 100644 --- a/source +++ b/source @@ -55622,6 +55622,46 @@ interface HTMLButtonElement : HTMLElement {
+
+

To determine if a command is valid for a + target given a command attribute + command and an element target:

+ +
    +
  1. If command is in the Unknown state, then return false.

  2. + +
  3. If command is in the Custom state, then return true.

  4. + +
  5. If target's namespace is not + the HTML namespace, then return false.

  6. + +
  7. +

    If target's popover attribute is not in the + No Popover state, and command is in any + of the following states:

    + +
      +
    • Toggle Popover

    • + +
    • Show Popover

    • + +
    • Hide Popover

    • +
    + +

    then return true.

    +
  8. + +
  9. If this standard does not define is valid command steps for + target's local name, then return + false.

  10. + +
  11. Otherwise, return the result of running target's corresponding is valid + command steps given command.

  12. +
+
+

A button element element's activation behavior given event is:

@@ -55666,31 +55706,9 @@ interface HTMLButtonElement : HTMLElement {
  • Let command be element's command attribute.

  • -
  • If command is in the Unknown state, then return.

  • - -
  • Let isPopover be true if target's popover attribute is not in the No Popover state; otherwise false.

  • - -
  • -

    If isPopover is false and command is not in the Custom state:

    - -
      -
    1. Assert: target's namespace is the - HTML namespace.

    2. - -
    3. If this standard does not define is valid command steps for - target's local name, then - return.

    4. - -
    5. Otherwise, if the result of running target's corresponding is valid - command steps given command is false, then - return.

    6. -
    -
  • +
  • If the result of determining if a command + is valid for a target given command and target is false, then + return.

  • Let continue be the result of firing an