[ZPT] HTMLParser or METAL bug ?

Godefroid Chapelle gotcha@swing.be
Fri, 18 Jan 2002 20:34:15 +0100


At 15:33 18/01/2002, Evan Simpson wrote

Thanks

>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>,

This is something I did not know.


>>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.

neither had I any idea that the parser was 'semantic-aware'


>Cheers,
>
>Evan
>

--

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