Roll out file that was checked in by accident.
authordarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 29 Jan 2006 18:18:39 +0000 (18:18 +0000)
committerdarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 29 Jan 2006 18:18:39 +0000 (18:18 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@12460 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/khtml/html/htmlparser.cpp

index 7c0297647caa2f3fae1411e03c50742275110c7c..6c2afa6073682cca79482cb452c94adf11aa6d62 100644 (file)
@@ -540,8 +540,7 @@ bool HTMLParser::handleError(NodeImpl* n, bool flat, const AtomicString& localNa
             e = new HTMLDivElementImpl(document);
             insertNode(e);
             handled = true;
-        } else if (h->hasLocalName(addressTag) || h->hasLocalName(buttonTag) ||
-                h->hasLocalName(dlTag) || h->hasLocalName(dtTag) ||  h->hasLocalName(fontTag)) {
+        } else if (h->hasLocalName(dlTag) || h->hasLocalName(dtTag)) {
             popBlock(currentTagName);
             handled = true;
         } else if (h->hasLocalName(selectTag)) {
@@ -560,11 +559,17 @@ bool HTMLParser::handleError(NodeImpl* n, bool flat, const AtomicString& localNa
                 // IE treats a nested select as </select>. Let's do the same
                 popBlock(localName);
             }
+        } else if (h->hasLocalName(addressTag)) {
+            popBlock(currentTagName);
+            handled = true;
         } else if (h->hasLocalName(colgroupTag)) {
             if (!n->isTextNode()) {
                 popBlock(currentTagName);
                 handled = true;
             }
+        } else if (h->hasLocalName(fontTag)) {
+            popBlock(currentTagName);
+            handled = true;
         } else if (!h->hasLocalName(bodyTag)) {
             if (isInline(current)) {
                 popInlineBlocks();