[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/khtml/html
From: Germain Garand <germain () ebooksfrance ! org>
Date: 2010-01-06 4:55:38
Message-ID: 1262753738.234281.1327.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1070587 by ggarand:
change r1062741 to rather skip comment detection in |title| altogether,
in order to avoid some regressions in |script| tag parsing.
This should be functionally equivalent (see comments on #83284)
and is actually closer to the behaviour of Gecko.
CCBUG: 83284
CCBUG: 161409
M +1 -1 htmltokenizer.cpp
--- trunk/KDE/kdelibs/khtml/html/htmltokenizer.cpp #1070586:1070587
@@ -353,7 +353,7 @@
while ( !src.isEmpty() ) {
checkScriptBuffer();
unsigned char ch = src->toLatin1();
- if ( !scriptCodeResync && !brokenComments && !textarea && !xmp && ch == '-' \
&& scriptCodeSize >= 4 && !src.escaped() && QString::fromRawData( \
scriptCode+scriptCodeSize-4, 4 ) == QLatin1String("<!--") ) { + if ( \
!scriptCodeResync && !brokenComments && !title && !textarea && !xmp && ch == '-' && \
scriptCodeSize >= 3 && !src.escaped() && QString::fromRawData( \
scriptCode+scriptCodeSize-3, 3 ) == "<!-" ) { comment = true;
scriptCode[ scriptCodeSize++ ] = ch;
++src;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic