[ZPT] bug. <script> tag inside page template rejected

Russell Uman russ at viz.com
Mon Aug 18 13:20:26 EDT 2003


howdy.

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??\

thanks!



More information about the ZPT mailing list