Menu

#256 Can't find end of comment: <!--main headers--->

open
5
2008-03-26
2008-03-26
Clem Wang
No

If a HTML comment has an extra "-", the parser gets confused and can't find the end of the comment.

Hence, a file containing this is treated as one big comment (THREE dashes before ">")

<!--main headers--->

<html>
<head>
</head>
</html>

The parser has no problems with this (TWO dashes before ">")

<!--main headers-->

<html>
<head>
</head>
</html>

Discussion

  • Derrick Oswald

    Derrick Oswald - 2008-03-26

    Logged In: YES
    user_id=605407
    Originator: NO

    I believe this case is handled by setting STRICT_REMARKS = false, on class org.htmlparser.lexer.Lexer.
    Please retest.

     
  • Derrick Oswald

    Derrick Oswald - 2008-03-26
    • labels: --> Dynamic Html Parsing
    • assigned_to: nobody --> derrickoswald
    • status: open --> pending
     
  • Clem Wang

    Clem Wang - 2008-03-26
    • status: pending --> open
     

Log in to post a comment.