The following code:
<p>Some words
<table>
...
</table>
results under Google Chrome in the nesting html > body > p > table. I realize there is a “missing” </p>, but on the other hand at least in HTML4 P cannot contain block-level elements. Why does Chrome then allow TABLE to live inside P?
Thanks.
Chrome does not allow that.
If you try it, Chrome’s parser will implicitly close the
<p>tag before the<table>.This behavior is required by the spec and is tested for by the Acid2 test.