[ZPT] HTMLParser or METAL bug ?

Godefroid Chapelle gotcha@swing.be
Fri, 18 Jan 2002 14:50:48 +0100


I am experiencing the following strange behaviour
with Zope 2.3.3 Page Templates 1.4.1 TAL 1.4.1

<!-- 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>
<tr>
<td>
</td>
</tr>
</table>
</p>
</body>
</html>

or

<!-- Page Template Diagnostics
  Compilation failed
  TAL.TALDefs.METALError: METAL attributes on <p> require explicit </p>, at 
line 3, column 1
-->
<html>
<body>
<p metal:define-macro="nextprevious">
<table>
<tr>
<td>
</td>
</tr>
</table>
</p>
</body>
</html>



when the following is OK

<html>
<body metal:define-macro="nextprevious">
<p>
<tr>
<td>
<table>
</table>
</td>
</tr>
</p>
</body>
</html>


Pay attention to the position of the <table> tag .
Any hints appreciated...




--

Godefroid Chapelle

BubbleNet sprl
rue Victor Horta, 18 / 202
1348 Louvain-la-Neuve
Belgium

Tel + 32 (10) 459901
Mob + 32 (477) 363942

TVA 467 093 008
RC Niv 49849