bigskysoftware / bigskysoftware/_hyperscript

Feature Request: `clear` command

Open
#216 5 comments 2 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.