[ZPT] Tags not allowed inside script blocks?
Fred L. Drake, Jr.
fdrake@acm.org
Tue, 12 Jun 2001 14:56:20 -0400 (EDT)
Hamish Lawson writes:
> But I still get a nesting error:
>
> Compilation failed
> TAL.HTMLTALParser.NestingError: Open tags <html>, <head>, <script>
> do not match close tag </span>, at line 4, column 54
>
> If I change the <script></script> tags to some other pair then it's OK.
> Does the HTMLTALParser not like any tags being inside a script block?
This is illegal HTML; <script> elements are not allowed to have
element content.
You can make the <script> element itself be "active", or use a
wrapper around it that selects the appropriate script.
-Fred
--
Fred L. Drake, Jr. <fdrake at acm.org>
PythonLabs at Digital Creations