Fog Creek Software
Discussion Board




Knowledge Base
Documentation
Terry's Tips
Darren's Tips

2.0.7 does not allow table tag within p tag

Problem: 2.0.7 does not allow table tag within p tag
Steps to reproduce:
1. Create a new article in 2.0.7
2. Switch to HTML view
3. Type this in:
<p><table></table></p>

Note: It acts the same with <tr>, <td>, etc. nested within <table>

4. Switch to Normal view
5. Switch back to HTML view (XHTML view?) and notice it has been changed to the following:
<p></p>
<table></table><br />
<br />

David Burch
Wednesday, July 16, 2003

Putting a <p></p> around <table></table> isn't valid html, or xhtml. According to my validator:

"element table not allowed here; possible cause is an inline element containing a block-level element".

CityDesk won't let you create invalid code any more. Personally, I'd use <div></div> instead of <p></p> (in fact on my website that's exactly what I do).

John C
Wednesday, July 16, 2003

Okay.  I guess I should read the spec.

Thanks.

David Burch
Wednesday, July 16, 2003

*  Recent Topics

*  Fog Creek Home