Open Bug 38655 Opened 25 years ago Updated 2 years ago

[MARGIN-C]Order of Header and font tags should not be important

Categories

(Core :: Layout, defect, P3)

x86
Windows NT
defect

Tracking

()

Future

People

(Reporter: conorlennon, Unassigned)

References

()

Details

(Keywords: testcase)

Attachments

(3 files)

From Bugzilla Helper: User-Agent: Mozilla/4.72 [en] (WinNT; I) BuildID: 200050820 <font color="#000000"><h1>Text</h1></font> produces a different output from <h1><font color="#000000">Text</font></h1> The second html snippet seems to have an extra line added before it. Reproducible: Always Steps to Reproduce: 0) Launch Viewer 1) Load the HTML snippet(alternatively placed http://members.xoom.com/conorl/Mozilla/font.html) Actual Results: The two 'Text' are not aligned horizontally Expected Results: The two 'Text' should be aligned horizontally HTML Snippet: <html><body> <table><tr><td> <h1><font color="#000000">Text</font></h1> </td><td> <font color="#000000"><h1>Text</h1></font> </td></tr></table></body></html>
Attached file Testcase for this bug (deleted) —
No DOM here, over to Layout
Assignee: jst → troy
Component: DOM Level 1 → Layout
QA Contact: gerardok → petersen
Reassigning to karnaze - Triaging Troy's bug list
Assignee: troy → karnaze
below follows the output of the w3c html validator, it seems to be invalid html may be it is a question of quirks mode to support it. Document Checked URI: http://members.xoom.com/conorl/Mozilla/font.html I was redirected to <URI:http://members.xoom.com/conorl/Mozilla/font.html> Last modified: Tue May 9 12:44:03 2000 Server: Apache/1.2.5 Content length: 288 Character encoding: unknown Document type: HTML 4.0 Transitional Below are the results of attempting to parse this document with an SGML parser. Line 1, column 1: <html> ^ Error: Missing DOCTYPE declaration at start of document (explanation...) Line 12, column 25: <font color="#000000"><h1>Text</h1></font> ^ Error: document type does not allow element "H1" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag
Problems accessing http://members.xoom.com/conorl/Mozilla/font.html possibly down to xoom adding an advertisment frame to the page. Works in Mozilla. To access the page without the advertisments try http: //members.xoom.com/_XMCM/conorl/Mozilla/font.html Alternatively try accessing the testcase http: //bugzilla.mozilla.org/showattachment.cgi?attach_id=8464
I saved the attachment and get the same answer from the validator: Line 23, column 25: <font color="#000000"><h1>Text</h1></font> ^ Error: document type does not allow element "H1" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag Could you please argue, why incorrect html should render identical to valid html? Bernd
I was not aware that <font color="#000000"><h1>Text</h1></font> was invalid html. This is not a bug.
Attached image visual debugging (deleted) —
From the visual debugging its is obvious that the font tag influences the box properties.
So what should happen is that Mozilla should act as if there was a </font> tag before the <h1> and ignore the other </font> tag. Sounds reasonable does it not?
<font color="#000000"><h1>Text</h1></font> is being rendered the same as <font color="#000000"></font><h1>Text</h1> in mozilla (tested in build id 2000051620)
Status: UNCONFIRMED → NEW
Ever confirmed: true
Buster, in the 3rd attachment, the 2nd cell's block is reporting a larger desired height than the 1st, which might explain the problem, but I'm not sure. Anyway, the table cell's appear to be return the correct desired heights. Nav and IE both render the attachment the same.
Assignee: karnaze → buster
Keywords: 4xp
This looks like a margin-collapsing issue. Assigning to myself for further investigation and since I own the rest of the margin-collapsing bugs right now.
Assignee: buster → dbaron
Summary: Order of Header and font tags should not be important → [MARGIN-C]Order of Header and font tags should not be important
Target Milestone: --- → M18
Giving margin collapsing bugs that I have not fixed to buster.
Assignee: dbaron → buster
Target Milestone: M18 → ---
P3 bugs are getting moved to "future" milestone. They will not be addressed for NS6 RTM.
Status: NEW → ASSIGNED
Target Milestone: --- → Future
Upon managerial request, adding the "testcase" keyword to 84 open layout bugs that do not have the "testcase" keyword and yet have an attachement with the word "test" in the description field. Apologies for any mistakes.
Keywords: testcase
Build reassigning Buster's bugs to Marc.
Assignee: buster → attinasi
Status: ASSIGNED → NEW
Mass removing self from CC list.
Now I feel sumb because I have to add back. Sorry for the spam.
Seems partly fixed (perhaps by bug 44242) and partly duplicate of bug 33784, I think (although I'm not sure).
Depends on: 33784
Assignee: attinasi → nobody
QA Contact: chrispetersen → layout
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: