bigskysoftware / bigskysoftware/_hyperscript
Feature Request: `clear` command
Open
enhancement
- Dominant language
- JavaScript
- Stars
- 3.8k
- Forks
- 172
- PR merge metrics
- No merged PRs in 30d
Description
Resetting an element or clearing its contents are pretty common behaviors. Right now, to clear an element you do `put '' into #ref` or `set #ref's innerHTML to ''`. Clearing an input requires `set #input's value to ''`. Resetting a form requires `call #form.reset()`.
A `clear` command that handles the first two cases would be pretty nice to have. The last case with the form though may not warrant and entire new command, as it's fairly straightforward and clear.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.