From 032125c876ca46c151e1860c999772f97924abb7 Mon Sep 17 00:00:00 2001 From: Joey Arhar Date: Wed, 21 Jun 2023 13:47:00 -0700 Subject: [PATCH 1/2] Make togglePopover throw more exceptions This PR makes sure that togglePopover will throw exceptions when it is disconnected from the document or doesn't have a popover attribute. Fixes https://github.com/whatwg/html/issues/8999 --- source | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/source b/source index be9f621d529..6a8401683ed 100644 --- a/source +++ b/source @@ -82726,6 +82726,19 @@ dictionary DragEventInit : MouseEventInit {
  • Otherwise, if force is not present or true, then run show popover given this true, and null.

  • +
  • +

    Otherwise:

    + +
      +
    1. Let expectedToBeShowing be true if this's popover + visibility state is showing, otherwise + false.

    2. + +
    3. Run check popover validity given expectedToBeShowing, true, and + null.

    4. +
    +
  • +
  • Return true if this's popover visibility state is showing; otherwise false.

  • From cf830914c741c2d078fa5d59d2cf9bc696dd96a7 Mon Sep 17 00:00:00 2001 From: Joey Arhar Date: Wed, 28 Jun 2023 06:30:18 -0700 Subject: [PATCH 2/2] replace comma with semicolon --- source | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source b/source index 6a8401683ed..348414da9e2 100644 --- a/source +++ b/source @@ -82731,7 +82731,7 @@ dictionary DragEventInit : MouseEventInit {
    1. Let expectedToBeShowing be true if this's popover - visibility state is showing, otherwise + visibility state is showing; otherwise false.

    2. Run check popover validity given expectedToBeShowing, true, and