[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/3.5/kdelibs/khtml/html
From: Allan Sandfeld Jensen <kde () carewolf ! com>
Date: 2006-11-20 11:27:56
Message-ID: 1164022076.943565.7578.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 606409 by carewolf:
Fix regression test mozilla/html_401/pre_ascii.html
M +2 -9 htmltokenizer.cpp
--- branches/KDE/3.5/kdelibs/khtml/html/htmltokenizer.cpp #606408:606409
@@ -726,18 +726,11 @@
if ( !EntityChar.isNull() ) {
checkBuffer();
- // Just insert it
- *dest++ = EntityChar;
if (entityLen > 0 && entityLen < cBufferPos) {
int rem = cBufferPos - entityLen;
- for(int i = 0; i < rem; i++)
- dest[i] = cBuffer[i+entityLen];
- dest += rem;
- if (pre)
- prePos += rem;
+ src.prepend( TokenizerString(QString::fromAscii(cBuffer+entityLen, rem)) );
}
- if (pre)
- prePos++;
+ src.push( EntityChar );
} else {
#ifdef TOKEN_DEBUG
kdDebug( 6036 ) << "unknown entity!" << endl;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic