[wp-hackers] p inside blockquote
Benjamin Hawkes-Lewis
bhawkeslewis at googlemail.com
Thu Mar 1 13:31:22 GMT 2007
Roy Schestowitz wrote:
> <p> can (should?) be nested within <blockquote>, but never the other
> way around, which leads to a common validation error that WP 1.2.x
> used to generate by default ('smart' tags).
It's worth bearing in mind that currents drafts of future markup
languages (both WHATWG's HTML and XHTML2) support <blockquote/> inside
<p/>. The inclusion of block quotations within logical paragraphs is
common in books, so this is an unnatural restriction in HTML4.01/XHTML
1.x. How WordPress should handle this with a view to preserving
authorial intent for expression in better markup languages of the future
is open to debate. Internally, it would be good to preserve logical
paragraphs. When a blockquote must be included in a logical paragraph
these logical paragraphs could either be output as:
<p>A normal paragraph (no quotation).</p>
<p>A paragraph with a quotation.</p>
<blockquote><p>The quotation.</p></blockquote>
<p>The paragraph continues.</p>
or
<p>A normal paragraph (no quotation).</p>
<div class="paragraph">A paragraph with a quotation.<blockquote><p>The
quotation.</p></blockquote>The paragraph continues.</div>
Which you prefer depends on which offends your semantic sense more.
Personally I prefer the second, since I'd prefer to imply a generic
block than imply paragraphs that aren't really there.
But since the output is independent of the storage, one could make it a
setting and avoid a heated debate.
--
Benjamin Hawkes-Lewis
More information about the wp-hackers
mailing list