This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 12791 - Use <label> for maxlength="" example
Summary: Use <label> for maxlength="" example
Status: RESOLVED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: LC1 HTML5 spec (show other bugs)
Version: unspecified
Hardware: All All
: P2 trivial
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-25 22:52 UTC by Jeremiah Lee Cohick
Modified: 2011-08-23 00:09 UTC (History)
5 users (show)

See Also:


Attachments

Description Jeremiah Lee Cohick 2011-05-25 22:52:35 UTC
In 4.10.7.2.8 The maxlength attribute <http://www.w3.org/TR/html5/common-input-element-attributes.html#the-maxlength-attribute>, the example should use most proper syntax, consistent with other examples.

e.g.

What are you doing? <input name=status maxlength=140>

should be:

<label>What are you doing? <input name="status" maxlength="140"/></label>
Comment 1 Michael[tm] Smith 2011-08-04 05:35:42 UTC
mass-move component to LC1
Comment 2 Anne 2011-08-15 16:07:08 UTC
The syntax is fine. Using <label> is prolly a good idea.
Comment 3 Ian 'Hixie' Hickson 2011-08-23 00:08:29 UTC
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Partially Accepted
Change Description: see diff given below
Rationale: see comment 2
Comment 4 contributor 2011-08-23 00:09:26 UTC
Checked in as WHATWG revision r6522.
Check-in comment: it's good form to use a label
http://html5.org/tools/web-apps-tracker?from=6521&to=6522