[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kfm-devel
Subject:    Re: allow table in <p>
From:       Vadim Plessky <lucy-ples () mtu-net ! ru>
Date:       2002-10-23 9:18:39
[Download RAW message or body]

On Tuesday 22 October 2002 1:58 am, Dirk Mueller wrote:
|  Hi,
|
|  this bug surprises me. any ideas why the following patch might not be
|  correct?
|

Hello Dirk!

I am not sure what kind of rendering you would like to get for this testcase.
Please check attahced examples, rendering of those in Konq (3.1beta2) is very 
close to Mozilla 1.0 (not identical, though)
At least, table now not in <p> with yellow bg, but partially on blue bg ;-)

|  testcase:
|
|  <HTML><HEAD>
|  <body style=width:310px>
|  <p style="margin: 1.0em 0px; background-color: blue;">
|  this is the text of the first paragraph blubb blabalababb
|  even more text and text and more text
|  <table border="1" align="right" width="200" cellpadding="1">
|   <TR>
|   <td align="right"><!--
|  www.heise.de/newsticker/meldungen/gesellschaft@Middle1 --></td>
|   </tr>
|  </table>
|  </p>
|  <p style="background-color: yellow">
|  Der Ausbildungsstand an deutschen Schulen sei derzeit eine
| Innovationsbremse f&uuml;r die Technologie-Branche, sagte Tenzer, der auch
| stellvertretender Telekom-Chef ist. "Die Koalitionsvereinbarung weist aber
| explizit auf verst&auml;rkte Anstrengungen in Sachen
| Schl&uuml;sseltechnologien, Forschung und Innovation hin.
|  </body>
|  </html>
|
|  (taken from heise newsticker)
|
|  patch:
|
|  diff -u -3 -d -p -r1.61 dtd.cpp
|  --- dtd.cpp     2002/10/21 18:30:30     1.61
|  +++ dtd.cpp     2002/10/21 21:58:01
|  @@ -305,6 +305,7 @@ static const ushort tag_list_0[] = {
|       ID_COMMENT,
|       ID_NOBR,
|       ID_WBR,
|  +    ID_TABLE,
|       0
|   };

Cheers,
-- 

Vadim Plessky
http://kde2.newmail.ru  (English)
33 Window Decorations and 6 Widget Styles for KDE
http://kde2.newmail.ru/kde_themes.html
KDE mini-Themes
http://kde2.newmail.ru/themes/

["table-in-div.html" (text/html)]

<html>
<head><title>Table in Paragraph</title>
<style type="text/css">
  table { float: right }
</style>
</head>
<body style="width:310px">
<div style="margin: 1.0em 0px; background-color: blue;">
this is the text of the first paragraph blubb blabalababb
even more text and text and more text
<table border="1" width="200" cellpadding="1">
 <TR>
 <td align="right"><!-- 
www.heise.de/newsticker/meldungen/gesellschaft@Middle1 -->
   some text inside table</td>
 </tr>
</table>
</div>

<p style="background-color: yellow;">
Der Ausbildungsstand an deutschen Schulen sei derzeit eine Innovationsbremse 
f&uuml;r die Technologie-Branche, sagte Tenzer, der auch stellvertretender 
Telekom-Chef ist. "Die Koalitionsvereinbarung weist aber explizit auf 
verst&auml;rkte Anstrengungen in Sachen Schl&uuml;sseltechnologien, 
Forschung und Innovation hin.
</body>
</html>

["table-in-div-2.html" (text/html)]

<html>
<head><title>Table in Paragraph</title>
<style type="text/css">
  table { float: right; margin: 1em }
</style>
</head>
<body style="width:310px">
<div style="margin: 1.0em 0px; background-color: blue;">
this is the text of the first paragraph blubb blabalababb
even more text and text and more text
<table border="1" width="200" cellpadding="1">
 <TR>
 <td align="right"><!-- 
www.heise.de/newsticker/meldungen/gesellschaft@Middle1 -->
   </td>
 </tr>
</table>
</div>

<p style="background-color: yellow;">
Der Ausbildungsstand an deutschen Schulen sei derzeit eine Innovationsbremse 
f&uuml;r die Technologie-Branche, sagte Tenzer, der auch stellvertretender 
Telekom-Chef ist. "Die Koalitionsvereinbarung weist aber explizit auf 
verst&auml;rkte Anstrengungen in Sachen Schl&uuml;sseltechnologien, 
Forschung und Innovation hin.
</body>
</html>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic