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

Allan Sandfeld Jensen kde at carewolf.com
Tue Jun 28 22:18:02 BST 2005


On Tuesday 28 June 2005 22:59, Harri Porten wrote:
> On Tue, 28 Jun 2005, Allan Sandfeld Jensen wrote:
> > > Anyone who recently worked on the tokenizer and <!-- comments feels
> > > like investigating this issu?
> > >
> > > Any KDE 3.3 or 3.4.0 user around to try the page as well?
> >
> > An off topic question. Why do you set the doctype to XHTML when you use
> > broken SGML comments?
>
> The test case has been reduced from a real world (Horde) web page. Didn't
> play much with the doctype and left it in as I guessed that it might be an
> decisive factor.
>
> 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> ?

`Allan




More information about the kfm-devel mailing list