Closed
Bug 218232
Opened 22 years ago
Closed 22 years ago
HTML 4.0 standards mode inserts space in tables
Categories
(Core :: Layout: Tables, defect)
Tracking
()
VERIFIED
INVALID
People
(Reporter: janusfury, Unassigned)
References
()
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5b) Gecko/20030903
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5b) Gecko/20030903
When I add the HTML 4.0 Strict DOCTYPE to my site
(http://www.finalredemption.com/72hourgdc/dev/), Mozilla (and Firebird) insert
about 4 pixels of space at the bottom and top of table cells. I have not been
able to find a reason for this; the site is valid according to the W3C
validators and I've spent hours experimenting to try and find the problem.
http://www.finalredemption.com/72hourgdc/dev/index.html (Works perfectly.)
http://www.finalredemption.com/72hourgdc/dev/index2.html (Doesn't work.)
The only difference? The first one doesn't have a doctype.
I've tested this in four different mozilla/firebird versions:
Firebird 0.61 (Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5a)
Gecko/20030728 Mozilla Firebird/0.6.1)
Mozilla 1.5b (Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5b)
Gecko/20030819)
Firebird 0.61+ (Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5b)
Gecko/20030903 Firebird/0.6.1+)
Mozilla 1.5b (Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5b)
Gecko/20030903)
Also, a friend of mine tried it on Linux and also saw the bug. (Mozilla/5.0
(X11; U; Linux i686; en-US; rv:1.4b) Gecko/20030726 Mozilla Firebird/0.6)
Reproducible: Always
Steps to Reproduce:
I'm unsure of the actual cause of this problem. However, it is triggered by
adding a valid DOCTYPE to my webpage.
Comment 1•22 years ago
|
||
Reporter, you can find an explanantion in these urls :
http://evolt.org/article/New_DOCTYPE_sniffing_in_upcoming_Mozilla_releases/1/32271/
http://evolt.org/article/Does_Netscape_6_Break_Your_Table_Layouts/17/4427/index.html
What you describe isn't a real bug, but is the result of the standard compliancy
of Mozilla. In standards-mode you can see this behaviour, In quirks-mode and in
almost-standards-mode it won't be seen. The last one is especially made to help
webpages like this one, that need to be standards-mode, but still need a few
things form the quirks-mode.
See bug 151620 for the bug, and
http://devedge.netscape.com/viewsource/2002/img-table/ for a full explanation.
The "display: block" style is a good workaround if you want to stay in
full-standards-mode.
Comment 2•22 years ago
|
||
Resolving invalid, as this is the designed behavior and not a bug.
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•