[ZPT] bug. <script> tag inside page template rejected
Dieter Maurer
dieter at handshake.de
Mon Aug 18 23:58:57 EDT 2003
Russell Uman wrote at 2003-8-18 12:20 -0700:
> i have a script tag inside a page template.
> inside the script tag, i write a script tag.
>
> <script language="JavaScript" type="text/javascript"><!--
> document.write('<scr'+'ipt language="JavaScript" type="text/javascript"></scr'+'ipt>');
> //--></script>
>
> the <script> and </script> tag is broken up in the document.write call to avoid a javascript bug on some browsers.
>
> zope gives me an error when it tries to use the template:
>
> Warning: Compilation failed
> Warning: TAL.HTMLParser.HTMLParseError: bad end tag: "</scr'+'ipt>", at line 69, column 89
>
> is there any way to get the zpt parser to accept/ignore this block of html??\
Looks like a bug.
Please file a bug report to "<http://collector.zope.org/Zope>".
Dieter
More information about the ZPT
mailing list