Closed Bug 1343145 Opened 7 years ago Closed 4 years ago

Clarify attribute checked for <input type="checkbox">

Categories

(Developer Documentation Graveyard :: General, defect, P5)

All
Other
defect

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: jan, Assigned: cmills)

References

()

Details

:: Developer Documentation Request

      Request Type: Correction
     Gecko Version: unspecified
 Technical Contact: 

:: Details

It's not sufficient to state that 'checked' is a Boolean. (Actually this isn't just Boolean since we can just use  <input type="checkbox" checked> without giving it true or false values.) Also it's not clear whether checked="true" or checked=true are allowed.

I'd also suggest that on of the examples has the 'checked' attribute, e.g.:
<input type="checkbox" id="cbox2" value="second_checkbox" checked>
I agree with you that this could be better written.

I've made some updates - let me know if you think this is better now.
Assignee: nobody → cmills
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
MDN Web Docs' bug reporting has now moved to GitHub. From now on, please file content bugs at https://github.com/mdn/sprints/issues/ and platform bugs at https://github.com/mdn/kuma/issues/.
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.