RE: bug in handling </p> inside <table>

I can see Stuart's point that P is not allowed in TABLE but if he is right
in listing the only things allowed within a TABLE, why doesn't Tidy insert
the TBODY where it is needed rather than let the browser imply it which
always seems to be a dangerous thing to do?

Cheers,

Rick Parsons

email: mailto:rick.parsons@bigfoot@com - anti spam, replace second @ with
dot
web: http://www.parsons1998.freeserve.co.uk/ [personal]
	http://west-penwith.cornwall.eu.org/ [West Penwith Resources]
address: 18, Brighton Road, Redland, Bristol, BS6 6NT England
telephone: +(44) 117 974 1288
53


-----Original Message-----
From: Stuart Updegrave [mailto:supde@microsoft.com]
Sent: 24 July 2000 18:31
To: 'Tung Mansfield'; 'html-tidy@w3.org'
Subject: RE: bug in handling </p> inside <table>



Tung -- your HTML is at fault, according to the HTML specification: 

11.2.1 The TABLE element

<!ELEMENT TABLE - -
     (CAPTION?, (COL*|COLGROUP*), THEAD?, TFOOT?, TBODY+)>

Those are the only allowed child elements of TABLE. Note that most TBODY was
introduced after the original implementations of TABLE, so most browsers
imply an TBODY if they see TABLE - TR without containing TBODY. 

cheers,
~stuart 

Received on Tuesday, 25 July 2000 03:47:41 UTC