[ZPT] <script> tag handling
richard@bizarsoftware.com.au
richard@bizarsoftware.com.au
Fri, 06 Apr 2001 10:26:22 +1000
richard@bizarsoftware.com.au 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?
*ahem*
Of course, one can just comment out the end comment tag like:
// end hiding contents -->
Note though that the place I found it
(http://www.blooberry.com/indexdot/html/ - an excellent HTML reference with
lots of compatibility notes) had it as:
<script LANGUAGE="JavaScript">
<!-- hide script from old browsers
function getname(str) {
alert("Hi, "+ str + "!");
}
// end hiding contents -->
</script>
:)
Sorry for being so noisy ;)
Richard
--
Richard Jones
richard@bizarsoftware.com.au
Senior Software Developer, Bizar Software (www.bizarsoftware.com.au)