Skip to content

Conversation

lukewarlow
Copy link
Contributor

Reference:


See chrome Intent to ship

Leaving as Draft till the spec is merged / Chrome i2S is approved.

src/jsx.d.ts Outdated
@@ -1613,6 +1613,9 @@ export namespace JSXInternal {

interface ButtonHTMLAttributes<T extends EventTarget = HTMLButtonElement>
extends HTMLAttributes<T> {
command?: Signalish<string | undefined>;
commandfor?: Signalist<string | undefined>;
commandFor?: Signalist<string | undefined>;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

There's a .commandForElement property that you can set to an element, it would be good to support this in Preact but popoverTargetElement also doesn't seem to be handled so will omit that for now.

@lukewarlow
Copy link
Contributor Author

TODO: Add onCommand IDL event handler

@preactjs preactjs deleted a comment from github-actions bot Feb 19, 2025
Copy link

github-actions bot commented Feb 19, 2025

📊 Tachometer Benchmark Results

Summary

A summary of the benchmark results will show here once they finish.

Results

The full results of your benchmarks will show here once they finish.

tachometer-reporter-action v2 for CI

@coveralls
Copy link

coveralls commented Feb 19, 2025

Coverage Status

coverage: 99.609%. remained the same
when pulling de8d894 on lukewarlow:add-command-types
into 46bace7 on preactjs:main.

@lukewarlow
Copy link
Contributor Author

HTML spec got merged

@lukewarlow lukewarlow marked this pull request as ready for review February 24, 2025 19:19
Copy link
Member

@rschristian rschristian left a comment

Choose a reason for hiding this comment

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

Thanks!

@rschristian rschristian merged commit eb9c8ab into preactjs:main Feb 25, 2025
5 checks passed
@JoviDeCroock JoviDeCroock mentioned this pull request Feb 26, 2025
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.

3 participants