Closed Bug 244494 Opened 20 years ago Closed 20 years ago

bad table rendering with xhtml 1.1

Categories

(SeaMonkey :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 22274

People

(Reporter: mimo2, Unassigned)

Details

(Keywords: testcase)

Attachments

(1 file, 1 obsolete file)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.8a2) Gecko/20040523
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.8a2) Gecko/20040523

here is a simple example of the problem (where image.png is any image) :

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
<head>
  <meta http-equiv="Content-type" content="text/html; charset=iso-8859-1" />
  <title>Test</title>
</head>
<body>
<div>
  <table cellspacing="0" cellpadding="0">
     <tr> <td style="background: #ff0000;">  <img src="image.png" alt="noimage"
/> </td>
          <td style="background: #ff0000;">  <img src="image.png" alt="noimage"
/> </td> </tr>
     <tr> <td style="background: #ff0000;">  <img src="image.png" alt="noimage"
/> </td>
          <td style="background: #ff0000;">  <img src="image.png" alt="noimage"
/> </td> </tr>
  </table>
</div>
</body>
</html>

  with mozilla, the size of the td elements do not adjust itself to the size of
 the image, and horizontal red lines are visible. This happens on WinXP (moz
1.6) and on Linux (moz 1.8a), so I guess it affects all versions and all OS.

  I've checked with the W3C validator, and this test case is valid XHTML 1.1

  Using I.E. on winXP does not show the problem

  If I remove the first line (<!DOCTYPE ... dtd">), the problem disappears. So
it really seems to be connected with the treatment of XHTML


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Attached file Reporters testcase (obsolete) —
Keywords: testcase
Attached file Testcase with image
Attachment #149192 - Attachment is obsolete: true
see http://devedge.netscape.com/viewsource/2002/img-table/

*** This bug has been marked as a duplicate of 22274 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
(In reply to comment #3)
> see http://devedge.netscape.com/viewsource/2002/img-table/
> 
> *** This bug has been marked as a duplicate of 22274 ***

thanks for the link. I was able to cure my problem.
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: