WICG / WICG/declarative-partial-updates
(Future?) enhancement: auto-submitting form
Nobody has claimed this yet.
- Dominant language
- Bikeshed
- Stars
- 135
- Forks
- 13
- Avg merge
- 12m
- Merged PRs (30d)
- 3
Description
A very common use of JavaScript is updating the document as a reaction to change events, e.g. a search input that updates search results without refreshing the whole document.
Perhaps this usage can be declarative as well (as part of declarative interception, (3) in the explainer)?
The idea is that a form could have something like a live or autosubmit boolean attribute, that when active, any change event in the form would send a patch-navigation request based on the new FormData and update the DOM using whatever patches receives.
(This is not a lot more than an HTML version of form.addEventListener("change", () => form.requestSubmit()))
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file, test, or entry point is identified in the issue. First clarify the declarative attribute, change-event and patch-navigation behavior, including how completion will be tested; then locate the relevant explainer and implementation once the project identifies them.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend, web-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100