- From: Mirko Brodesser <notifications@github.com>
- Date: Wed, 07 Jun 2023 07:57:11 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 7 June 2023 14:57:16 UTC
An alternative idea: when https://html.spec.whatwg.org/#hide-popover-algorithm is invoked, instead of invoking https://html.spec.whatwg.org/#check-popover-validity from there, check only if https://html.spec.whatwg.org/#popover-visibility-state is "hidden" and if so return early. Be aware that https://html.spec.whatwg.org/#popover-visibility-state is set to "hidden" only in https://html.spec.whatwg.org/#hide-popover-algorithm. https://html.spec.whatwg.org/#dom-hidepopover would need to be extended to check whether the popover attribute is not present and throw in that case. Similar adaptations might be needed for other callers of https://html.spec.whatwg.org/#hide-popover-algorithm, but it might overall be a simpler solution than https://github.com/whatwg/dom/pull/1185#issuecomment-1579186990. -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/dom/pull/1185#issuecomment-1580999079 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/dom/pull/1185/c1580999079@github.com>
Received on Wednesday, 7 June 2023 14:57:16 UTC