Closed Bug 149348 Opened 23 years ago Closed 23 years ago

Addition of a DTD address causes elements on page to shift

Categories

(Core :: Layout, defect, P3)

x86
Linux
defect

Tracking

()

RESOLVED DUPLICATE of bug 153032
Future

People

(Reporter: ajp+mozilla, Assigned: attinasi)

References

()

Details

Attachments

(3 files)

Under Mozilla 1.0rc3: First go to http://www.ebnj.net/index.php - notice on the top left and top right sides of the page, the images which create the rounded border? Now go to http://www.ebnj.net/weird.php - those same images have shifted about 4 o r 5 pixels down, and in the case of the bottom ones, 4 or 5 pixels up. Why is this a problem, you ask? The only difference between index.php and weird.php is the address "http://www.w3.org/TR/REC-html40/loose.dtd" inside the DOCTYPE tag at the top of the page. It actually doesn't seem to matter what address you put inside the quotes.. as long as there's some kind of text in there, the images on the page will shift.
QA Contact: petersen → moied
Oh, I should also note that this works fine in IE 5.5.
This also happens when the DTD is set to XHTML 1.0 Transitional.
I've submitted three attachments to demonstrate a problem that occurs only if the URL of "http://www.w3.org/TR/html4/loose.dtd" is included in the doctype at the beginning of the page. home.html shows table cells that are ignoring the height attribute in the td tag. home1.html shows table cells that are honoring the height attributes. The only difference between the two html files is the presence of "http://www.w3.org/TR/html4/loose.dtd" in the doctype in home.html but not in home1.html
Forgot to mention that the table cell sizing issue shows up on Windows NT SP6 with the 1.0 release of Mozilla -- don't know if it also shows up on other OS variants. Since problems caused by including a DTD address show up on Linux AND Windows, I think the odds are good that this affects most if not all OS variants of Mozilla.
Priority: -- → P3
Target Milestone: --- → Future
*** This bug has been marked as a duplicate of 153032 ***
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
do you know if this bug has been fixed or not before you close it? (considering this bug came BEFORE the duplicate bug)
Any cases where it's not fixed are duplicate of bug 22274, anyway.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: