[whatwg] P element's content model restrictions

Benjamin Hawkes-Lewis bhawkeslewis at googlemail.com
Mon May 28 23:41:20 PDT 2007


Martin Payne wrote:
> Leif Halvard Silli wrote:
>> I'd like to question these restricions. I think that at the very 
>> least, TABLE should be allowed inside the P element. The reason is 
>> that MSIE (I tested version 6 and 7) accept TABLE in P, regardless of 
>> whether it is in Quirks-Mode or in Standards-Mode. Even 
>> Firefox-Opera-Safari (FirOpSa) allow TABLE inside P - allthough they 
>> only do so when in Quirks-Mode.
>>   
> 
> When would it ever make sense to do this though? Surely you would never 
> want to put a table inside a paragraph, because tables and paragraphs 
> are two totally different things.

What does this mean? IMHO the criterion needs to be: do printed works 
ever place tables inside paragraphs? I don't know the case for tables; 
but I know paragraphs regularly include block quotations.

> I also can’t see why you would put a 
> paragraph inside a paragraph—surely it should either just be one 
> paragraph, or be two completely separate paragraphs.

Directly nested? No reason. But indirectly nested you often need 
paragraphs in a quotation.

--
Benjamin Hawkes-Lewis



More information about the whatwg mailing list