Reviewed by Darin.
authormjs <mjs@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 30 Jul 2004 01:22:18 +0000 (01:22 +0000)
committermjs <mjs@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 30 Jul 2004 01:22:18 +0000 (01:22 +0000)
<rdar://problem/3745808> Seed: WebKit: Table's caption broken

        * khtml/html/htmlparser.cpp:
        (KHTMLParser::insertNode): When a caption appears in an illegal
place in a table, pop blocks until we hit a place where it's
allowed.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@7158 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog-2005-08-23
WebCore/khtml/html/htmlparser.cpp

index 79ef684..f1799da 100644 (file)
@@ -1,3 +1,14 @@
+2004-07-29  Maciej Stachowiak  <mjs@apple.com>
+
+        Reviewed by Darin.
+
+       <rdar://problem/3745808> Seed: WebKit: Table's caption broken
+       
+        * khtml/html/htmlparser.cpp:
+        (KHTMLParser::insertNode): When a caption appears in an illegal
+       place in a table, pop blocks until we hit a place where it's
+       allowed.
+
 === Safari-154 ===
 
 2004-07-29  Darin Adler  <darin@apple.com>
index 0b1e187..ff6c5fa 100644 (file)
@@ -582,12 +582,17 @@ bool KHTMLParser::insertNode(NodeImpl *n, bool flat)
         case ID_TFOOT:
         case ID_TBODY:
         case ID_TR:
+       case ID_TD:
             switch(id)
             {
             case ID_TABLE:
                 popBlock(ID_TABLE); // end the table
                 handled = true;      // ...and start a new one
                 break;
+           case ID_CAPTION:
+               popBlock(current->id());
+               handled = true;
+               break;
             case ID_TEXT:
             {
                 TextImpl *t = static_cast<TextImpl *>(n);