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 13530 - example in 4.10.1 has unneeded <p> around form elements
Summary: example in 4.10.1 has unneeded <p> around form elements
Status: VERIFIED WORKSFORME
Alias: None
Product: HTML WG
Classification: Unclassified
Component: LC1 HTML5 spec (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 13542
  Show dependency treegraph
 
Reported: 2011-08-02 21:12 UTC by Cynthia Shelly
Modified: 2011-12-16 23:32 UTC (History)
6 users (show)

See Also:


Attachments

Description Cynthia Shelly 2011-08-02 21:12:34 UTC
What purpose does it serve to wrap <p> around the form elements?  It clutters the example, adds spacing that would need to be removed with CSS, and doesn't make sense semantically.
Comment 1 Anne 2011-08-03 06:02:32 UTC
Per the HTML definition of <p> this makes perfect sense.
Comment 2 Michael[tm] Smith 2011-08-04 05:12:19 UTC
mass-move component to LC1
Comment 3 Edward O'Connor 2011-08-04 18:23:44 UTC
<p> elements are commonly used by web authors to wrap form elements. For instance, Django's form object provides an as_p convenience method for doing just that (as well as as_table and as_ul): https://docs.djangoproject.com/en/dev/topics/forms/#displaying-a-form-using-a-template

In general, the examples in the spec use a variety of markup styles and conventions, to avoid implicitly endorsing one over the others.
Comment 4 Cynthia Shelly 2011-12-16 23:32:03 UTC
I can live with that.