Closed Bug 1936411 Opened 8 months ago Closed 2 months ago

Implement imperative popover invokers

Categories

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

enhancement

Tracking

()

RESOLVED FIXED
141 Branch
Tracking Status
relnote-firefox --- 141+
firefox141 --- fixed

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.

Assignee: nobody → lwarlow
Status: NEW → ASSIGNED
Assignee: lwarlow → mozilla

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

Keywords: dev-doc-needed
Attachment #9442801 - Attachment description: Bug 1936411: Implement imperative popover invokers r=emilio → Bug 1936411: Implement imperative popover invokers r?#dom-core,emilio
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 141 Branch

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?

Flags: needinfo?(sebastianzartner)

(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

relnote-firefox: --- → ?
Flags: needinfo?(sebastianzartner)

Note added to 141 beta release notes. I am keeping the relnote flag in the bug open until we ship to release. Thanks.

Added to our 141 final release notes.

Regressions: 1984004
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: