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

Allan Sandfeld Jensen kde at carewolf.com
Tue Jun 28 21:46:12 BST 2005


On Tuesday 28 June 2005 20:45, Harri Porten wrote:
> Hi!
>
> I just tried to track down a JS parse error George encountered on a web
> page. Turned out that the problems is related to the HTML tokenizer rather
> than the JS one.
>
> The example on http://www.froglogic.com/~porten/x.html should display
> "SCRIPT1", a textarea with "--" and "SCRIPT2". Instead everything from the
> first <script> to the second <script> is passed to KJS.
>
> 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?

`Allan




More information about the kfm-devel mailing list