[ZPT] HTMLParser or METAL bug ?

Evan Simpson evan@zope.com
Fri, 18 Jan 2002 09:33:59 -0500


Godefroid Chapelle wrote:
> <!-- Page Template Diagnostics
>  Compilation failed
>  TAL.HTMLTALParser.NestingError: Open tags <html>, <body> do not match 
> close tag </p>, at line 10, column 1
> -->
> <html>
> <body metal:define-macro="nextprevious">
> <p>
> <table>

A <table> implicitly closes a <p>,

> when the following is OK
> 
> <html>
> <body metal:define-macro="nextprevious">
> <p>
> <tr>
> <td>
> <table>

...while a <tr> doesn't, but only because <tr>s aren't supposed to 
appear outside of <table>s.

Cheers,

Evan