Share

htmlcxx

Tracker: Bugs

5 Parsing of comment in plaintext elements - ID: 2871316
Last Update: Comment added ( timdrijvers )

Parsing of unclosed comments fails in the current htmlcxx library, for
example:
<style>
<!--
....
</style>

However, comparing the parsing results of several browsers, non of these
support comment in the plaintext elements. So, the simplest way to overcome
this artifact is by simple removing the parsing of comments routine from
the literal parsing. For more information, see the example file.


Tim Drijvers ( timdrijvers ) - 2009-10-01 13:53

5

Open

None

Nobody/Anonymous

None

None

Public


Comments ( 2 )




Date: 2009-10-01 15:26
Sender: timdrijvers

For even more information, one could check:
http://trac.webkit.org/browser/trunk/WebCore/khtml/html/htmltokenizer.cpp?rev=4103#L394


Date: 2009-10-01 14:34
Sender: timdrijvers

My report above, isnt fully correct. Consider the following case:
<script>
<!---
var a = '<script></script>';
-->
</script>

By removing the comment parse functionality, this piece will not be parsed
correctly.


Log in to comment.

Attached File ( 1 )

Filename Description Download
fail.html Two examples Download

Change ( 1 )

Field Old Value Date By
File Added 344967: fail.html 2009-10-01 13:53 timdrijvers