Bug 43112

Summary: recurrent tables align incorrectly (merlin.one.pl) (testcase)
Product: [Applications] konqueror Reporter: colt
Component: khtml rendererAssignee: Konqueror Developers <konq-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: test case

Description colt 2002-05-27 00:13:15 UTC
(*** This bug was imported into bugs.kde.org ***)

Package:           khtml
Version:           KDE 3.0.1 
Severity:          normal
Installed from:    Compiled From Sources
Compiler:          gcc version 2.95.4 20010319 (prerelease)
OS:                Linux
OS/Compiler notes: Not Specified

Tables whitch contain other tables don't align its contents properly. (CENTER ERROR) You can see at merlin.one.pl. This is displayed properly in Netscape Mozilla IE. 

(Submitted via bugs.kde.org)
Comment 1 Daniel Naber 2002-09-25 01:28:02 UTC
Created attachment 73 [details]
test case
Comment 2 Dirk Mueller 2004-02-13 00:14:17 UTC
CVS commit by mueller: 

align tables too
CCMAIL: 43112-done@bugs.kde.org


  M +8 -0      html_tableimpl.cpp   1.181


--- kdelibs/khtml/html/html_tableimpl.cpp  #1.180:1.181
@@ -547,4 +547,12 @@ void HTMLTablePartElementImpl::parseAttr
         break;
     }
+    case ATTR_ALIGN:
+    {
+        DOMString v = attr->value();
+        if ( strcasecmp( attr->value(), "center" ) == 0 )
+            v = "\\2d khtml-center";
+        addCSSProperty(CSS_PROP_TEXT_ALIGN, v);
+        break;
+    }
     case ATTR_VALIGN:
     {