Comment by c-smile
3 days ago
Also, if to allow form.value to accept JSON-ish objects it will be possible to set form values in single shot:
form.value = { transAmount: 12345n, transDate: new Date() };
where form is
<form>
... <output type="currency" name="transAmount" />
... <output type="date-local" name="transDate" />
</form>
No comments yet
Contribute on Hacker News ↗