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

Add invoke defaults for input and select #9912

Closed
wants to merge 2 commits into from

Conversation

lukewarlow
Copy link
Member

@lukewarlow lukewarlow commented Nov 4, 2023

  • At least two implementers are interested (and none opposed):
  • Tests are written and can be reviewed and commented upon at:
  • Implementation bugs are filed:
    • Chromium: …
    • Gecko: …
    • WebKit: …
  • MDN issue is filed: …
  • The top of this comment includes a clear commit message to use.

(See WHATWG Working Mode: Changes for more details.)


/browsers.html ( diff )
/form-elements.html ( diff )
/index.html ( diff )
/indices.html ( diff )
/input.html ( diff )
/interaction.html ( diff )
/popover.html ( diff )
/rendering.html ( diff )
/web-messaging.html ( diff )
/webappapis.html ( diff )
/webstorage.html ( diff )
/workers.html ( diff )
/invokers.html ( diff )

This specifies some of the detail within the Invokers proposal (whatwg#9625).

This introduces 2 new IDLs:

- InvokeEvent: A new event that has `action` and `invoker`.
- InvokeElement: A mixin applied to Buttons to add
  `invokeTargetElement`/`invokeAction`

It also adds the `invoketarget` & `invokeaction` attributes which are
reflected to the IDL properties.

It also adds the steps for invocation: button activation checks if the
node has an invokeTarget and dispatches an InvokeEvent if so.

Things NOT covered in this commit that are included in the propoal (whatwg#9625):

- Default per element behaviours (invocation action algorithms), this
  will be dealt with in subsequent individual commits.

- `interestaction` and `interesttarget`.
This specifies the invocation action algorithm for input and select.

- If an `invoketarget` points to a HTMLInputElement or HTMLSelectElement
   - If the `invokeaction` is `showPicker`, try to show the picker
@lukewarlow
Copy link
Member Author

Going to close this for now. Once the initial patch gets in I'll rebase this and bring it up to date.

@lukewarlow lukewarlow closed this Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants