[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:54:22
Message-ID: 1164023662.221258.10524.nullmailer () svn ! kde ! org
[Download RAW message or body]

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;
                     }
[prev in list] [next in list] [prev in thread] [next in thread] 

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