Using https://github.com/whatwg/html/pull/9457 (with some changes made to catch up with the current spec) to fix a spec bug and a crash when removing a visible popover.
PopoverInvokerElement
PopoverInvokerElement's explicitly set attr-element should be set to null whenever the value of the `popovertarget` content attribute is changed.