<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>170650</bug_id>
          
          <creation_ts>2008-09-08 01:14:26 +0000</creation_ts>
          <short_desc>[testcase] Broken website layout - http://pollycoke.net</short_desc>
          <delta_ts>2008-09-15 04:31:20 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>konqueror</product>
          <component>khtml</component>
          <version>4.1.0</version>
          <rep_platform>Compiled Sources</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Luigi Toscano">luigi.toscano</reporter>
          <assigned_to name="Konqueror Bugs">konqueror-bugs-null</assigned_to>
          <cc>frank78ac</cc>
    
    <cc>germain</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>644586</commentid>
    <comment_count>0</comment_count>
    <who name="Luigi Toscano">luigi.toscano</who>
    <bug_when>2008-09-08 01:14:26 +0000</bug_when>
    <thetext>Version:            (using KDE 4.1.1)
Installed from:    Compiled From Sources

The layout of http://pollycoke.net/, an italian blog wordpress-based, is broken in KDE 4.x while it renders correctly in 3.5.x.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>644840</commentid>
    <comment_count>1</comment_count>
    <who name="Germain Garand">germain</who>
    <bug_when>2008-09-09 00:35:24 +0000</bug_when>
    <thetext>when I disable JS the rendering is fine, so might be a script misbehaving..
not sure why it would not affect 3.5 in the same way though.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>645381</commentid>
    <comment_count>2</comment_count>
      <attachid>27356</attachid>
    <who name="Frank Reininghaus">frank78ac</who>
    <bug_when>2008-09-10 21:43:54 +0000</bug_when>
    <thetext>Created attachment 27356
Reduced test case

This reduced test case still shows the strange behaviour for me - some text is shown outside the box in 4.1.1, but not in 3.5.10. I can now reproduce it without JS although I&apos;m pretty sure that removing the links to the &quot;.js&quot; files did not work at an earlier stage in the reduction.

It&apos;s also funny that the buggy behaviour depends on the &quot;&lt;!DOCTYPE...&quot; declaration. Remove it or change &quot;XHTML Strict&quot; to &quot;XHTML Transitional&quot;, and the bug goes away. Replacing &quot;XHTML Strict&quot; by &quot;HTML Strict&quot; keeps the buggy behaviour though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>645671</commentid>
    <comment_count>3</comment_count>
    <who name="Germain Garand">germain</who>
    <bug_when>2008-09-11 22:16:24 +0000</bug_when>
    <thetext>thanks for the nice testcase!
so the &apos;bug&apos; is that we try to do stricter, more standard HTML parsing in 4.x in standard mode.

Apparently, this is way too optimistic for the web.
I&apos;ll revert to more loosy parsing in all modes.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>646521</commentid>
    <comment_count>4</comment_count>
    <who name="Germain Garand">germain</who>
    <bug_when>2008-09-15 04:31:20 +0000</bug_when>
    <thetext>SVN commit 861054 by ggarand:

.doing strict dtd checking for inlines in strict mode turns out to be
 too optimistic. It breaks sites.

.no popBlock for dl/dt errors. It doesn&apos;t match what other browsers do.

BUG: 170650


 M  +2 -5      dtd.cpp  
 M  +0 -8      htmlparser.cpp  


--- trunk/KDE/kdelibs/khtml/html/dtd.cpp #861053:861054
@@ -474,14 +474,11 @@
     case ID_FONT:
     case ID_LEGEND:
     case ID_Q:
+    case ID_A:
     case ID_NOBR:
     case ID_WBR:
         // %inline *
-        return check_inline(childID, strict) ||
-               (!strict &amp;&amp; check_block(childID, strict));
-    case ID_A:
-        // A: %inline * (but even strict sites expect %flow)
-        return check_flow(childID, strict);
+        return check_inline(childID, strict) || check_block(childID, strict);
     case ID_P:
         // P: %inline *
         return check_inline(childID, strict) ||
--- trunk/KDE/kdelibs/khtml/html/htmlparser.cpp #861053:861054
@@ -801,14 +801,6 @@
             insertNode(e);
             handled = true;
             break;
-        case ID_DL:
-            popBlock(ID_DL);
-            handled = true;
-            break;
-        case ID_DT:
-            popBlock(ID_DT);
-            handled = true;
-            break;
         case ID_FORM:
             popBlock(ID_FORM);
             handled = true;
</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>27356</attachid>
            <date>2008-09-10 21:43:54 +0000</date>
            <delta_ts>2008-09-10 21:43:54 +0000</delta_ts>
            <desc>Reduced test case</desc>
            <filename>testcase.html</filename>
            <type>text/html</type>
            <size>540</size>
            <attacher name="Frank Reininghaus">frank78ac</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWwgUFVCTElDICItLy9XM0MvL0RURCBYSFRNTCAxLjAgU3RyaWN0Ly9FTiIg
Imh0dHA6Ly93d3cudzMub3JnL1RSL3hodG1sMS9EVEQveGh0bWwxLXN0cmljdC5kdGQiPgo8aHRt
bCB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94aHRtbCI+CjxoZWFkPgo8dGl0bGU+VGVz
dCBjYXNlIGZvciBidWcgMTcwNjUwPC90aXRsZT4KPG1ldGEgaHR0cC1lcXVpdj0iY29udGVudC10
eXBlIiBjb250ZW50PSJ0ZXh0L2h0bWw7IGNoYXJzZXQ9VVRGLTgiIC8+CjwvaGVhZD4KPGJvZHk+
CiAgPGRpdiBzdHlsZT0iYm9yZGVyOjVweCBzb2xpZCAjZGRlOyI+CiAgICA8ZW0gc3R5bGU9ImRp
c3BsYXk6YmxvY2s7Ij4KICAgICAgPGRpdj5UaGlzIHRleHQgYXBwZWFycyBhbHdheXMgaW5zaWRl
IHRoZSBib3guPC9kaXY+CiAgICA8L2VtPgogICAgVGhpcyB0ZXh0IGFwcGVhcnMgaW5zaWRlIHRo
ZSBib3ggaW4gRmlyZWZveCAzIGFuZCBLb25xdWVyb3IgMy41LjEwLCBidXQgbm90IGluIDQuMS4x
LgogIDwvZGl2Pgo8L2JvZHk+CjwvaHRtbD4K
</data>

          </attachment>
      

    </bug>

</bugzilla>