HTML parser bug involving <!-- in <script>

Harri Porten porten at froglogic.com
Tue Jun 28 22:38:41 BST 2005


On Tue, 28 Jun 2005, Allan Sandfeld Jensen wrote:

> > Btw, I don't think that the <!-- comments inside of <script> elements are
> > really valid in any mode, no?
> >
> Well, HTML is still defined to parse horribly broken things, where as XML and
> thereby XHTML should just break.
>
> I guess what should be done here is close any possible comments at </script> ?

So far it was KJS that handled the <!-- similarly to a // comment. KHTML
appearantly did not care about anything after <script> besides the closing
</script> tag. That seems to have changed.

Harri.





More information about the kfm-devel mailing list