Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTMLElement.togglePopover() live example #27942

Merged
merged 3 commits into from
Jul 19, 2023

Conversation

hamishwillee
Copy link
Collaborator

@hamishwillee hamishwillee commented Jul 14, 2023

There was a spec change to make HTMLElement.togglePopover() return a boolean rather than undefined. I started this update on the false understanding that this had been implemented in FF. Not the case there, or anywhere else (yet).

Rather than throw away the work, I have used HTML comments to hide that.

The value this adds is that now the popup is a working live example, which additionally makes it clear that you have to think about what will happen if popovers are not supported (the popover HTML just renders!)

@hamishwillee hamishwillee requested a review from a team as a code owner July 14, 2023 06:42
@hamishwillee hamishwillee requested review from sideshowbarker and removed request for a team July 14, 2023 06:42
@hamishwillee hamishwillee marked this pull request as draft July 14, 2023 06:43
@github-actions github-actions bot added the Content:WebAPI Web API docs label Jul 14, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Jul 14, 2023

Preview URLs

External URLs (2)

URL: /en-US/docs/Web/API/HTMLElement/togglePopover
Title: HTMLElement: togglePopover() method

(comment last updated: 2023-07-19 10:30:14)

@hamishwillee hamishwillee marked this pull request as ready for review July 17, 2023 05:42
@hamishwillee hamishwillee force-pushed the ff115_toggle_popover branch from d236124 to 1ebe729 Compare July 17, 2023 05:42
@hamishwillee hamishwillee changed the title FF115 HTMLElement.togglePopover() returns boolean HTMLElement.togglePopover() live example Jul 17, 2023
@sideshowbarker sideshowbarker merged commit cb667ec into mdn:main Jul 19, 2023
@hamishwillee hamishwillee deleted the ff115_toggle_popover branch July 20, 2023 23:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:WebAPI Web API docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants