See testcase. This testcase is almost completely minimal. The script doesn't get evaluated, and the text of it is rendered on the screen. This was reduced from a live page.
Created attachment 11456 [details] testcase
Seems the /html and /body are irrelevant.
Hi, what is the expected parsing of this page in strict mode? The problem is the page gets handled in strict mode because of the <!DOCTYPE statement. Removing that and running in quirks mode the page works, but in strict mode the comment is treated as closed and so the text gets displayed.
Well I would not expect it to dump the js on the page, that's for sure. I think because the DTD is transitional it should probably still run the script. This was taken from a live page, and no other browser renders the script text.
I've just tried the testcase on konqueror 4.0.3. It display an alert message and it render some text on the page. Is this the right behavior?
Current behaviour in KDE4.0.3/Kubuntu is correct: I think the bug is that it previously displayed the contents of the Javascript/comment because of malformed comment. Now seems fixed.
Seems fixed (kde 4.8)