#497 HTML comment parse problem

Bug
closed-fixed
Neil Hodgson
SciTE (622)
2
2013-06-12
2006-11-03
RickDog
No

SciTE
Version 1.71, Aug 20 2006 20:17:16
WinXP SP2

The following comment is not parsed correctly, doesn't
understand namespaces:

<html>
<head>
<title>HTML Comment Parsing Bug</title>
</head>
<body>
<!-->
&nbsp;
<?XML:NAMESPACE
PREFIX=RPT /><RPT:CURRENTSECTION>1</RPT:CURRENTSECTION>
&nbsp;of
<RPT:TOTALSECTIONCOUNT>1</RPT:TOTALSECTIONCOUNT>
&nbsp;
<-->
</body>

Discussion

  • Logged In: YES
    user_id=2556

    Problematic code is at line 684 of LexHTML.cxx: when finding
    <? we might enter the SCE_H_XMLSTART state unless we are in
    some states, mostly script comments. But it doesn't test
    against the SCE_H_COMMENT state...

     
  • Neil Hodgson
    Neil Hodgson
    2006-11-08

    • priority: 5 --> 2
    • assigned_to: nobody --> nyamatongwe
    • status: open --> open-accepted
     
  • Neil Hodgson
    Neil Hodgson
    2006-11-08

    Logged In: YES
    user_id=12579

    I won't be working on this myself but will accept a patch.

     
  • Neil Hodgson
    Neil Hodgson
    2013-06-12

    Fix included with [#1447].

     

    Related

    Bugs: #1447

  • Neil Hodgson
    Neil Hodgson
    2013-06-12

    • status: open-accepted --> closed-fixed