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 13224 - Feedback on: "4.5.1 The p element"
Summary: Feedback on: "4.5.1 The p element"
Status: RESOLVED WORKSFORME
Alias: None
Product: HTML WG
Classification: Unclassified
Component: LC1 HTML5 spec (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-12 15:22 UTC by Simon Sigurdhsson
Modified: 2011-08-04 05:35 UTC (History)
7 users (show)

See Also:


Attachments

Description Simon Sigurdhsson 2011-07-12 15:22:12 UTC
It is unclear wether paragraphs are allowed inside other paragraphs. As per the HTML 4.01 spec, this is disallowed, which is what many expect, but in this section no rules regarding nesting are specified (apart from p both being flow content and allowed to contain flow content). If the intention is that p elements should be allowed to nest, this should be stated explicitly as it differs from HTML 4.01 behaviour, and if that is not the case, it should also be stated explicitly to avoid confusion.

See e.g. http://stackoverflow.com/questions/6666137/why-is-firebug-auto-inserting-p/ for an example of the confusion that ensues.
Comment 1 Boris Zbarsky 2011-07-12 15:31:15 UTC
> apart from p both being flow content and allowed to contain flow content

http://www.whatwg.org/specs/web-apps/current-work/multipage/grouping-content.html#the-p-element says that <p> contains phrasing content, not flow content.  What am I missing?
Comment 2 Simon Sigurdhsson 2011-07-12 15:37:08 UTC
You're right, Boris. It might just be that the spec is hard to read — it's not immediately obvious to me that "Content model" means "element may contain this content".
Comment 3 Boris Zbarsky 2011-07-12 15:40:08 UTC
It would probably help if that term linked to http://www.whatwg.org/specs/web-apps/current-work/multipage/content-models.html#content-models where the first sentence is pretty clear....
Comment 4 Aryeh Gregor 2011-07-12 22:41:00 UTC
The spec is correct.  See comment 1.

(In reply to comment #3)
> It would probably help if that term linked to
> http://www.whatwg.org/specs/web-apps/current-work/multipage/content-models.html#content-models
> where the first sentence is pretty clear....

Filed bug 13228.
Comment 5 Michael[tm] Smith 2011-08-04 05:35:57 UTC
mass-move component to LC1