Closed Bug 32050 Opened 25 years ago Closed 25 years ago

TD inherits ALIGN="center" from TABLE with HTML 4.0 strict.dtd

Categories

(Core :: Layout: Tables, defect, P3)

x86
Linux
defect

Tracking

()

VERIFIED DUPLICATE of bug 7112

People

(Reporter: sverrehu, Assigned: karnaze)

References

()

Details

Documents stating that they use HTML 4.0 strict DTD, which nevertheless use
ALIGN="center" for tables, are rendered incorrectly.  The contents of the table
gets centered, not just the table itself.

If changing from strict to transitional (loose.dtd), everything works as
expected.  Also, if removing the ALIGN tag, the table renders just fine.

Of course it is an error to include the ALIGN tag if one states that the
document conforms to strict HTML 4.0, but I guess there are more people like
me out there who just copy the first DOCTYPE example they come across and use it
as long as it renders correctly in "older" browsers.


Testet on build 2000031517, and other nightly builds.
This is (almost) a dup of bug 28647, marked WONTFIX.  The HTML 4 spec stipulates
that a cell inherits its ALIGN attribute from the table.  So there is no bug
here, I think.
Then I wonder why it honors the ALIGN inheritance with strict.dtd, where
ALIGN is not to be used, while it does not honor it with loose.dtd,
where ALIGN _is_ allowed?
I think I may have overlooked something in bug 7112 (see the test case and 
comments on 6/12/99 by dbaron@fas.harvard.edu). Maybe ALIGN=center on the table 
should work the same way in quirks and strict modes. 

*** This bug has been marked as a duplicate of 7112 ***
Status: UNCONFIRMED → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
Target Milestone: M16
Verified duplicate.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.