Skip to content

Conversation

@MUSKANNISHAD
Copy link

This PR improves the documentation by explaining how invoker commands and the button command attribute interact with dialogs, and adds a small example demonstrating their usage.
The dialog page did not previously explain how invoker commands apply to dialogs, even though this functionality is part of the HTML standard and documented elsewhere. This change helps readers understand how dialogs can be opened and closed using declarative commands without custom JavaScript.
Fixes #42121

@MUSKANNISHAD MUSKANNISHAD requested a review from a team as a code owner December 23, 2025 06:00
@MUSKANNISHAD MUSKANNISHAD requested review from hamishwillee and removed request for a team December 23, 2025 06:00
@github-actions github-actions bot added Content:HTML Hypertext Markup Language docs size/s [PR only] 6-50 LoC changed size/m [PR only] 51-500 LoC changed and removed size/s [PR only] 6-50 LoC changed labels Dec 23, 2025
@MUSKANNISHAD MUSKANNISHAD requested a review from a team as a code owner December 25, 2025 05:43
@github-actions github-actions bot added the Content:WebAPI Web API docs label Dec 25, 2025

ctx.stroke(path2);
```
## Specifications
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[mdn-linter] reported by reviewdog 🐶

Suggested change
## Specifications
## Specifications

@MUSKANNISHAD
Copy link
Author

Hi maintainers 👋
I’ve added the Path2D example for creating and copying paths and fixed the related lint issues.
All changes are now pushed to the same branch.

Could you please review when you get a chance?
Thanks a lot!

@sideshowbarker sideshowbarker removed the request for review from a team December 25, 2025 23:51
@github-actions github-actions bot removed the Content:WebAPI Web API docs label Dec 30, 2025
@github-actions
Copy link
Contributor

Copy link
Collaborator

@hamishwillee hamishwillee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MUSKANNISHAD I removed all the spurious unrelated commits on path 2d, merged the remainder and rebased. It is best not to mix PRs about different things.

However this is still a bit unreviewable - see line 76. Did you review this locally to see how the changes rendered? Did you move the accessibility section or change it?

I might not get back to this until well in the new year.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:HTML Hypertext Markup Language docs size/m [PR only] 51-500 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mention the "command" attribute of buttons

2 participants