[ZPT] <script> tag handling

richard@bizarsoftware.com.au richard@bizarsoftware.com.au
Fri, 06 Apr 2001 11:28:06 +1000


Guido van Rossum wrote:
> 
> > 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!

Sorry, my link to the w3c is very slow at the moment. According to:

   http://www.blooberry.com/indexdot/html/tagpages/s/script.htm

The content model is identical to <!-- -->.

That is, ignore everything until you hit a </script>.


    Richard

-- 
Richard Jones
richard@bizarsoftware.com.au
Senior Software Developer, Bizar Software (www.bizarsoftware.com.au)