[ZPT] <script> tag handling

Guido van Rossum guido@digicool.com
Thu, 05 Apr 2001 21:08:38 -0500


> HTMLTALParser doesn't like <script> tags. Shouldn't it perhaps ignore the
> contents of a <script> tag? Placing the contents of the tag inside <!-- -->
> comments appeases the parser, but of course the content of the <script> is
> then broken.
> 
> I've looked into HTMLTALParser, and I'm not sure I can see where it would
> be handled. Can someone closer to the source comment please?

I'm embarrassed, but what is it about <script> tags that HTMLTALParser
doesn't like?  Is there a special convention (e.g. you have to skip
until </script>, ignoring any markup in between)?  I basically learned
HTML when it was small and elegant, and I have no idea what <script>
is supposed to do.

Tell me (or give me a pointer) and I'll fix it!

--Guido van Rossum (home page: http://www.python.org/~guido/)