W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2010

[whatwg] Paragraphs in blockquotes

From: Futomi Hatano <info@html5.jp>
Date: Tue, 11 May 2010 17:49:32 +0900
Message-ID: <20100511174932.F253.C8DE7135@html5.jp>
On Tue, 11 May 2010 09:06:11 +0100
Richard Clark <hello at richclarkdesign.com> wrote:

> In HTML5 that requirement seems to have been relaxed, as the following
> element validates successfully:
> 
> <blockquote>This is a blockquote.</blockquote>
> 
> The HTML5 spec uses the p element in the usage examples, but does not
> mention whether it is required.
> 
> Can you please confirm if this requirement has now been deprecated?"

The content model for <blockquote> is Flow content.
Flow content includes "text".
So, the text as a child of <blockquote> is valid.

The spec says that a run of phrasing content (in this case, it is the text.) is a paragraph.
http://www.whatwg.org/specs/web-apps/current-work/multipage/content-models.html#paragraph
So, the examples below have same semantics.

<blockquote>This is a blockquote.</blockquote>
<blockquote><p>This is a blockquote.</p></blockquote>

The former is valid, but, of course, authers are encouraged the latter much more.

Regards
Futomi

--
Futomi Hatano
http://www.html5.jp/
http://www.futomi.com/
http://twitter.com/futomi
Received on Tuesday, 11 May 2010 01:49:32 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:23 UTC