Bug 89356 - Content rendered outside borders.
Summary: Content rendered outside borders.
Status: RESOLVED FIXED
Alias: None
Product: konqueror
Classification: Applications
Component: khtml (show other bugs)
Version: 3.3
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-12 15:19 UTC by Diederik van der Boor
Modified: 2005-01-10 15:11 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Diederik van der Boor 2004-09-12 15:19:43 UTC
Version:           3.3 (using KDE 3.3.0, Gentoo)
Compiler:          gcc version 3.3.3 20040412 (Gentoo Linux 3.3.3-r6, ssp-3.3.2-2, pie-8.7.6)
OS:                Linux (i686) release 2.6.7-gentoo-r11

The content of the page http://www.tweakers.net/meuktracker/7293 is rendered outside the borders.
Comment 1 Allan Sandfeld 2004-11-12 17:14:22 UTC
Please extract a simpler test-case. It would help a lot.
Comment 2 Diederik van der Boor 2005-01-07 01:04:08 UTC
It appears the bad rendering is caused by a <div><ul><li>test</div> sequence (no closing </ul>). You could say it's a coincidence Mozilla still renders the page correctly.

This is my extraction of the page:


<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>

<html>
  <head>
    <title>Tweakers.net - Driver updates [ ATi Linux Driver 3.12.0 ]</title>
        
    <style>
      .b3 {font-family:arial,helvetica; font-size:9px; color:gray;}
      .b4 {font-family:arial,helvetica; font-size:13px; color:#353535;font-weight:100;text-align:justify;margin-left:35px;width:465}
      .b15 {font-family:arial,helvetica; font-size:13px; color:black;text-align:justify;line-height:18px;}
    </style>
  </head>
   
  <body bgcolor='#C6C1B4'>
  
  <div id='if_body'>
  <table border=0 cellpadding=0 cellspacing=0 width=571>
  <tr>
    <td width=535 bgcolor='#FFFFFF' valign='top'>
      <img src='http://www.tweakers.net/g/zpx.gif' width=535 height=1 style='margin-bottom:3px'>
      <br>
    
  <div class=b4>
    Known Issues
    
    <ul>
     <li>3D Linux applications corrupt or hang with "force multi-sample visuals" enabled
    
      <!-- unclosed UL here.. ! -->
  
  </div>


    <div class=b3>
      <img src='http://www.tweakers.net/g/dots.gif' width=535 height=1 vspace=1>
    </div>

    <div class='b15' style='margin-left:0px;width:535'>
      <!-- long text that will continue a little longer -->
      Werkt deze driver eigelijk ook op X.Org? Want ik zie steeds updates voor XFree86 maar niks voor X.Org.
    </div>

    <br>
  
    </td>
  </tr>
  </table>
  </div>

</body>
</html>
Comment 3 Allan Sandfeld 2005-01-07 17:47:03 UTC
Okay, so it is another case where lists should be closed along with the containing DIV block.
Comment 4 Allan Sandfeld 2005-01-10 15:11:39 UTC
CVS commit by carewolf: 

Increase DIV priority to be able to close unclosed UL and LI elements. 
This also matches WebCore behaviour.
BUG:89356


  M +1 -1      dtd.cpp   1.79


--- kdelibs/khtml/html/dtd.cpp  #1.78:1.79
@@ -73,5 +73,5 @@ const unsigned short KDE_NO_EXPORT DOM::
     1, // ID_DFN
     5, // ID_DIR
-    4, // ID_DIV
+    5, // ID_DIV
     4, // ID_DL
     3, // ID_DT