SVN commit 606414 by carewolf: Firefox is quirkier than a sex-changed platipus Fixes regression test mozilla/htmlparser/70148.html M +3 -2 htmltokenizer.cpp --- branches/KDE/3.5/kdelibs/khtml/html/htmltokenizer.cpp #606413:606414 @@ -706,8 +706,9 @@ if(Entity == SearchSemicolon) { if(cBufferPos > 1) { const entity *e = kde_findEntity(cBuffer, cBufferPos); - // IE only accepts unterminated entities < 256, Gecko accepts them all - if(e) { + // IE only accepts unterminated entities < 256, + // Gecko accepts them all, but only outside tags + if(e && ( tag == NoTag || e->code < 256 || *src == ';' )) { EntityChar = e->code; entityLen = cBufferPos; }