[Zope] Re: ZPT parser changes from 2.6.x to 2.7.3 ?
m.bizzarri at icube.it
Tue Nov 16 11:28:28 EST 2004
Tonico Strasser wrote:
> Marco Bizzarri wrote:
>> Hi all.
>> The following page was accepted under Zope 2.6.x, but it is not
>> anymore accepted under Zope 2.7.3.
>> <title tal:content="template/title">The title</title>
>> if (gecko) document.write('<tr><td><table>');
>> if (gecko) document.write('</table></td></tr>');
>> The problem, of course, is in the </table> inside the second <script>
>> section. The error is:
>> Compilation failed
>> TAL.HTMLTALParser.NestingError: Open tags <html>, <body>, <script> do
>> not match close tag </table>, at line 10, column 36
>> therefore, the parse is interpreting the inside of the <script> tag as
>> normal tags instead of simple content of the script.
>> (Please note that it is not an option, at the moment, to put the
>> <tr><td><table> inside one single <script> tag, because there is other
>> content between the two scripts).
>> Any suggestions?
> call it from the Page Template:
> I'd prefer to request the JS code with the 'src' attribute of the
> <script> element.
Yes, it was useful to identify some solutions. I will try all the
More information about the Zope