Closed Bug 80474 Opened 25 years ago Closed 25 years ago

Tables are rendered with extra space below table rows in XHTML versus HTML 4.01

Categories

(Core :: Layout: Tables, defect)

x86
Windows 98
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 22274

People

(Reporter: rick, Assigned: karnaze)

References

()

Details

From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; 0.8.1) Gecko/20010323 BuildID: 2001032319 If you take a simple table with 2 graphics (one table, 2 table rows, each with one graphic) and simply change the header from HTML 4.01, to XHTML, the table is displayed with extra spaces (almost as if mozilla is interpreting a <br> after the image) below the images. Reproducible: Always Steps to Reproduce: 1. Make a simple page: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"> <html> <head><title>test.html</title></head> <body> <table cellpadding="0" cellspacing="0" border="0" width="50" align="Center"> <tbody> <tr> <td><img src="50x50.gif" vspace="0" hspace="0" border="0" width="50" height="25"></td> </tr> <tr> <td><img src="50x50.gif" vspace="0" hspace="0" border="0" width="50" height="25"></td> </tr> </tbody> </table> </body> </html> 2. Using the same construction, simply replace the doctype with: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 3. The two tables, although marked the same - render differently. Actual Results: The two tables, although the HTML is the same - render differently, depending on which doctype is used. Expected Results: I would expect the results to be the same.
Standards-compliant mode (triggered by the doctype) renders space for text descenders on inline elements -- try setting img {display:block} to get the quirks-mode behavior. Moz does this correctly. Invalid. This issue seems to come up a lot, is there an FAQ for common standards issues like this?
See bug 22274 (resolved invalid) for explanation and workarounds. *** This bug has been marked as a duplicate of 22274 ***
Status: UNCONFIRMED → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.