From b28a9f99dde07d508d1aab499959886ee0f60496 Mon Sep 17 00:00:00 2001
From: Mason Freed
To run the popover target attribute activation behavior given a Node
- node:
EventTarget
eventTarget:
Let popover be node's popover target element.
If popover is null, then return.
If eventTarget is a shadow-including inclusive descendant of + popover, then return.
If node's popovertargetaction
attribute is in the show state and
popover's popover visibility state is
Date: Sun, 17 Nov 2024 09:43:27 -0800
Subject: [PATCH 2/4] Fix nesting problem
---
source | 23 ++++++++++++-----------
1 file changed, 12 insertions(+), 11 deletions(-)
diff --git a/source b/source
index 5d548bfad02..58f6c227aaf 100644
--- a/source
+++ b/source
@@ -86361,22 +86361,23 @@ dictionary DragEventInit : MouseEventInit {
attribute, limited to only known values.
To run the popover target attribute activation behavior given a Node
- node and an EventTarget
eventTarget:
EventTarget
eventTarget:
Let popover be node's popover target element.
Let popover be invoker's popover target element.
If popover is null, then return.
If eventTarget is a shadow-including inclusive descendant of - popover, then return.
If node's popovertargetaction
+
If invoker's popovertargetaction
attribute is in the show state and
popover's popover visibility state is showing, then return.
If node's popovertargetaction
+
If invoker's popovertargetaction
attribute is in the hide state and
popover's popover visibility state is hidden, then return.
Otherwise, if popover's popover visibility state is hidden and the result of running check popover validity given popover, false, false, and null is true, then run show - popover given popover, false, and node.
To get the popover target element given a Node
node, perform
+
To get the popover target element given a Node
invoker, perform
the following steps. They return an HTML element or null.
If node is not a button, then return +
If invoker is not a button, then return null.
If node is disabled, then return +
If invoker is disabled, then return null.
If node has a form owner and node is a If invoker has a form owner and invoker is a submit button, then return null.
Let popoverElement be the result of running node's get the popovertarget
-associated
element.
Run element's input activation behavior, if any, and do nothing otherwise.
Run the popover target attribute activation behavior given - element and event's - target.
Run the popover target attribute activation behavior given element + and event's target.
Recall that an element's activation behavior runs for both @@ -53491,9 +53490,8 @@ interface HTMLButtonElement : HTMLElement { -
Run the popover target attribute activation behavior given - element and event's - target.
Run the popover target attribute activation behavior given element + and event's target.
To run the popover target attribute activation behavior given a Node
- invoker and an EventTarget
eventTarget:
EventTarget
eventTarget:
Let popover be invoker's popover target element.
Let popover be node's popover target element.
If popover is null, then return.
If eventTarget is a shadow-including inclusive descendant of - popover, and popover is a shadow-including inclusive descendant - of invoker, then return.
If invoker's popovertargetaction
+
If node's popovertargetaction
attribute is in the show state and
popover's popover visibility state is showing, then return.
If invoker's popovertargetaction
+
If node's popovertargetaction
attribute is in the hide state and
popover's popover visibility state is hidden, then return.
Otherwise, if popover's popover visibility state is hidden and the result of running check popover validity given popover, false, false, and null is true, then run show - popover given popover, false, and invoker.
To get the popover target element given a Node
invoker, perform
+
To get the popover target element given a Node
node, perform
the following steps. They return an HTML element or null.
If invoker is not a button, then return +
If node is not a button, then return null.
If invoker is disabled, then return +
If node is disabled, then return null.
If invoker has a form owner and invoker is a If node has a form owner and node is a submit button, then return null.
Let popoverElement be the result of running invoker's get the popovertarget
-associated
element.
To run the popover target attribute activation behavior given a Node
- node and an EventTarget
eventTarget:
Node
eventTarget:
Let popover be node's popover target element.