Summary: | Content rendered outside borders. | ||
---|---|---|---|
Product: | [Applications] konqueror | Reporter: | Diederik van der Boor <vdboor> |
Component: | khtml | Assignee: | Konqueror Developers <konq-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 3.3 | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Diederik van der Boor
2004-09-12 15:19:43 UTC
Please extract a simpler test-case. It would help a lot. 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> Okay, so it is another case where lists should be closed along with the containing DIV block. 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 |