Skip to content

Calling showPopover during popover show causes infinite recursion #12356

@jakearchibald

Description

@jakearchibald

What is the issue with the HTML Standard?

https://random-stuff.jakearchibald.com/bug-repros/nested-showpopover/

If showPopover called on popoverA during the beforetoggle of popoverA, you get recursion until max-stack-size.

It seems like one of the following should happen:

  • It should throw (without recursion)
  • It should show the popover without firing beforetoggle, and the outer showPopover call should early-return since the popover is now shown (which might just happen due to "check popover validity".

Thoughts @mfreed7 @keithamus @lukewarlow @bramus? (the popover posse)

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: popoverThe popover attribute and friends

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions