Open Bug 1839254 Opened 2 years ago Updated 2 years ago

togglePopover should return a boolean

Categories

(Core :: DOM: Core & HTML, enhancement)

enhancement

Tracking

()

UNCONFIRMED

People

(Reporter: jarhar, Unassigned)

Details

(Keywords: dev-doc-needed)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36

Steps to reproduce:

Called HTMLElement.togglePopover() from script.

Actual results:

There was no return value.

Expected results:

togglePopover should return true if the popover is open after the call, otherwise false. We are changing this in the HTML spec here: https://github.com/whatwg/html/pull/9393

FYI, there is an MDN issue for this here: https://github.com/mdn/content/issues/27417. I've added dev-doc-needed to trigger docs work when this is done.

Keywords: dev-doc-needed

The Bugbug bot thinks this bug should belong to the 'Core::DOM: Core & HTML' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → DOM: Core & HTML
Product: Firefox → Core
You need to log in before you can comment on or make changes to this bug.