Skip to content

add(foundations): invoker commands page#70

Merged
jdevalk merged 2 commits into
mainfrom
standards-scan/invoker-commands-2026-06-30
Jun 30, 2026
Merged

add(foundations): invoker commands page#70
jdevalk merged 2 commits into
mainfrom
standards-scan/invoker-commands-2026-06-30

Conversation

@jdevalk

@jdevalk jdevalk commented Jun 30, 2026

Copy link
Copy Markdown
Owner

What changed

New spec page: Invoker commands (src/content/spec/foundations/invoker-commands.md) documenting the command / commandfor button attributes — the Invoker Commands API. Covers the built-in popover commands (show-popover / hide-popover / toggle-popover), the <dialog> commands (show-modal / close / request-close), and custom ---prefixed commands that fire a CommandEvent on the target.

Also:

  • Wired relatedSlugsinvoker-commands on popover-api and native-interactive-elements (the natural neighbours).
  • Changelog entry (2026-06-30-invoker-commands.md, type added).
  • Per-page OG image + the count-driven OG images (og-default, checklist, spec, foundations).

SKILL.md uses a rounded "140+ pages", which stays accurate at 154 — no digest change needed.

Why now

Invoker commands reached Baseline "newly available" at the end of 2025: Chrome 135 (Apr 2025), Firefox 144 (Oct 2025), Safari 26.2 (12 Dec 2025) completed cross-browser support. It is the declarative complement to the already-covered Popover API, <dialog>, and inert pages, removing another class of hand-rolled click-handler + ARIA wiring.

Primary sources

Status

recommended — Baseline across major browsers, but a one-line scripted fallback covers users on older versions; it is not part of the platform contract that breaks without it, so not required.

Checks

npm run build passes (154 pages indexed); pre-commit lint + prettier pass. Draft — do not merge; MCP Worker redeploy is a post-merge human step.

🤖 Generated with Claude Code

Document the command/commandfor button attributes (the Invoker Commands
API), which reached Baseline across major browsers at the end of 2025
(Safari 26.2 completing the set). Declarative button-to-target wiring for
popovers and <dialog>, plus custom --commands via CommandEvent, with the
browser handling keyboard activation and accessibility.

Status: recommended (Baseline, with a scripted fallback for older browsers).
Wires relatedSlugs on popover-api and native-interactive-elements; adds a
changelog entry and the per-page + count-driven OG images.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 30, 2026

Copy link
Copy Markdown

Deploying specification-website with  Cloudflare Pages  Cloudflare Pages

Latest commit: 806c987
Status: ✅  Deploy successful!
Preview URL: https://0002dd9f.specification-website.pages.dev
Branch Preview URL: https://standards-scan-invoker-comma.specification-website.pages.dev

View logs

The inline link in the invoker-commands page pointed at
/spec/foundations/native-interactive-elements/, but that page lives
under the accessibility category, so the Internal links CI job 404'd.
Point it at /spec/accessibility/native-interactive-elements/.

Also add a Cardinal rule to CLAUDE.md: verify a target page's
directory before hand-writing an inline /spec/<category>/<slug>/ link,
since the category is the directory the .md lives in, not the linking
page's category.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@jdevalk jdevalk marked this pull request as ready for review June 30, 2026 06:33
@jdevalk jdevalk merged commit b38e3a6 into main Jun 30, 2026
8 checks passed
@jdevalk jdevalk deleted the standards-scan/invoker-commands-2026-06-30 branch June 30, 2026 06:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant