https://html.spec.whatwg.org/multipage/infrastructure.html#dom-trees:hide-popover-algorithm When a popover is removed from the DOM, it calls the [hide popover algorithm](https://html.spec.whatwg.org/multipage/popover.html#hide-popover-algorithm). That algorithm will always exit on step 1, since the removed element is no longer connected to the document.