From 204de347cb43213ac60d8c90ab123365d222acb4 Mon Sep 17 00:00:00 2001 From: Joey Arhar Date: Tue, 21 Mar 2023 16:24:17 -0700 Subject: [PATCH 1/2] Throw exception in originalType check Since exception throwing was moved into "check popover validity," we need to explicitly throw an exception for this originalType check in order to make sure that it actually throws an exception like it is supposed to. Fixes https://github.com/whatwg/html/issues/9037 --- source | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/source b/source index c56d43c7b1e..d7beea4b2da 100644 --- a/source +++ b/source @@ -81949,9 +81949,11 @@ dictionary DragEventInit : MouseEventInit {
  • If originalType is not equal to the value of element's popover attribute, or if the result of running check - popover validity given element, false, and throwExceptions is - false, then return.

    + data-x="attr-popover">popover attribute, then throw a + "InvalidStateError" DOMException.

    + +

    If the result of running check popover validity given element, + false, and throwExceptions is false, then return.

    Check popover validity is called again because running hide all popovers until above could have fired the From 6a4ec4567aff14d0941afcefd040ee39dc2021cb Mon Sep 17 00:00:00 2001 From: Joey Arhar Date: Wed, 19 Apr 2023 08:57:12 -0700 Subject: [PATCH 2/2] move to separate li --- source | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source b/source index 69d15ec4d13..d001a509588 100644 --- a/source +++ b/source @@ -82117,11 +82117,11 @@ dictionary DragEventInit : MouseEventInit {

  • Run hide all popovers until given ancestor, false, and true.

  • -
  • -

    If originalType is not equal to the value of element's popover attribute, then throw a - "InvalidStateError" DOMException.

    +
  • If originalType is not equal to the value of element's popover attribute, then throw a + "InvalidStateError" DOMException.

  • +
  • If the result of running check popover validity given element, false, and throwExceptions is false, then return.