Implement imperative popover invokers
Categories
(Core :: DOM: Core & HTML, enhancement)
Tracking
()
People
(Reporter: lwarlow, Assigned: keithamus)
References
(Blocks 1 open bug, Regressed 1 open bug)
Details
(Keywords: dev-doc-complete)
Attachments
(1 file)
See https://github.com/whatwg/html/pull/10728 for details.
The showPopover() and togglePopover() methods now include an options bag that allows setting the popover invoker imperatively.
Reporter | ||
Comment 1•8 months ago
|
||
Updated•8 months ago
|
Assignee | ||
Updated•7 months ago
|
Comment 2•3 months ago
|
||
Once this lands, it needs to be documented. And it's also worth to be noted in the release notes, once it lands (not sure whether to already add the request for the addition, though).
Sebastian
Updated•2 months ago
|
Comment 4•2 months ago
|
||
bugherder |
Comment 5•2 months ago
|
||
FF141 MDN docs for this can be tracked in https://github.com/mdn/content/issues/40027
From Sebastian in https://bugzilla.mozilla.org/show_bug.cgi?id=1936411#c2
it needs to be documented. And it's also worth to be noted in the release note
The options are already documented in showPopover()
and togglePopover()
. They are also mentioned in the Other ways to set up a popover-invoker relationship in the Using the Popover API guide.
I think this is sufficient - were you expecting something else Sebastian?
Comment 6•2 months ago
|
||
(In reply to Hamish Willee from comment #5)
I think this is sufficient - were you expecting something else Sebastian?
The existing documentation at showPopover()
and togglePopover()
looks complete, yes. I just meant, it needs to be added to the FF 141 release notes and to the BCD, which you're already tracking. So, thanks for that!
But I'll take the chance to add a release notes request. 😀
[Why is this notable]: Adds imperative ways to handle popovers.
[Affects Firefox for Android]: yes
[Suggested wording]: The HTMLElement.showPopover()
and HTMLElement.togglePopover()
methods now take an options.source
argument referencing the popover invoker, and togglePopover()
also takes a force
resp. options.force
argument to force the popover open or closed.
[Links (documentation, blog post, etc)]:
https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/showPopover
https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/togglePopover
Sebastian
Updated•2 months ago
|
Comment 7•2 months ago
|
||
Note added to 141 beta release notes. I am keeping the relnote flag in the bug open until we ship to release. Thanks.
Description
•