3 ms·
> That's not how the value of the checked attribute works. It is roughly/conceptually how the "checked" attribute works, in that boolean attributes provided by
by vidarh 3y ago
> That's not how the value of the checked attribute works.
It is roughly/conceptually how the "checked" attribute works, in that boolean attributes provided by name but without a value will be set/truthy.
From the link you gave:
> checked
> A boolean attribute indicating whether this checkbox is checked by default (when the page loads).
What you quoted is how the "value" attribute works, which is entirely irrelevant to how the "checked" attribute works.