[HTML_AJAX-devel] dynamic loading javascript IE bug

Otto Berger bruno at hilight.de
Tue Jul 18 02:17:10 PDT 2006


Hi,

i think there is a little bug in the parsing function of setInnerHTML.
After spending hours with debugging i found out that snippets like the
following results in an javascript error in the IE (not in Firefox):


<script type="text/javascript">
<!--
alert("hello world!");
//-->
</script>

the problem is the <!-- comment... I know that in modern browsers this
tag is useless there - but some older scripts use them for backward
capability  to "Netscape 1" and "IE 2" ;-)


cheers,
Otto




More information about the Html_ajax-devel mailing list