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 9099 - suggestion; use list for <br> non-conforming example form alternative
Summary: suggestion; use list for <br> non-conforming example form alternative
Status: RESOLVED WONTFIX
Alias: None
Product: HTML WG
Classification: Unclassified
Component: pre-LC1 HTML5 spec (editor: Ian Hickson) (show other bugs)
Version: unspecified
Hardware: PC All
: P3 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-20 12:08 UTC by Oli Studholme
Modified: 2010-10-04 14:29 UTC (History)
4 users (show)

See Also:


Attachments

Description Oli Studholme 2010-02-20 12:08:50 UTC
Currently the conforming alternative form replaces <p> + <br> with individual <p> elements:

<p><label>Name: <input name="name"></label></p>
<p><label>Address: <input name="address"></label></p>

For me this seems a non-conforming use of <p> :-) Its generally considered best practice is to use a list for forms, so I suggest changing to:

<li><label>Name: <input name="name"></label></li>
<li><label>Address: <input name="address"></label></li>

You could wrap this in <ol>, but <p> in non-conforming to <li> in conforming is a good enough hint that another element may be more suitable.
Comment 1 Ian 'Hixie' Hickson 2010-03-31 21:12:23 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: Rejected
Change Description: no spec change
Rationale: Why would this be inappropriate for <p>? HTML5 specifically says it's fine. Using a list seems far less appropriate.