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

Harri Porten porten at kde.org
Tue Jun 28 19:45:04 BST 2005


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?

Harri.





More information about the kfm-devel mailing list