[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/4.1/kdelibs/khtml/html
From:       Maks Orlovich <maksim () kde ! org>
Date:       2008-08-23 17:07:02
Message-ID: 1219511222.607985.17297.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 851443 by orlovich:

Fix this in the right spot: only strip it for comments, not 
other stuff that (inexplicably) goes through parseComment.


 M  +1 -2      htmltokenizer.cpp  


--- branches/KDE/4.1/kdelibs/khtml/html/htmltokenizer.cpp #851442:851443
@@ -514,7 +514,6 @@
                 if ( scriptCodeSize > 2 && scriptCode[scriptCodeSize-3] == '-' &&
                      scriptCode[scriptCodeSize-2] == '-' )
                 {
-                    scriptCodeSize -= 1;
                     scriptEnd=true;
                 }
             }
@@ -526,7 +525,7 @@
                     scriptCode[ scriptCodeSize ] = 0;
                     scriptCode[ scriptCodeSize + 1 ] = 0;
                     currToken.tid = ID_COMMENT;
-                    processListing(TokenizerString(scriptCode, scriptCodeSize - 2));
+                    processListing(TokenizerString(scriptCode, scriptCodeSize - 3));
                     processToken();
                     currToken.tid = ID_COMMENT + ID_CLOSE_TAG;
                     processToken();
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic