Closed Bug 93365 Opened 23 years ago Closed 23 years ago

<font face=arial> only goes through tables when all tags are closed

Categories

(Core :: DOM: HTML Parser, defect)

x86
Windows NT
defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla0.9.4

People

(Reporter: jruderman, Assigned: attinasi)

References

()

Details

(Keywords: testcase, topembed, Whiteboard: [fixed on the trunk and branch], topembed+)

Attachments

(6 files)

<font face=arial> is applied to a table inside the font tag only if both of the 
following are true:

1. all tags inside the table are closed
2. the font tag is closed
Forgot to mention: I split this from bugscape 5639.
Keywords: testcase, topembed
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9.4
Looks like IE allows FONT to contain TABLE! If I do the same then everything (
well almost! ) seems to work fine. It's impressive that IE retains the content
model intact even when handling qurikyness. That is, try the example below

<font>
 <b><i>
</font>
 bold </b>
 italic </i>

In N6 content model looks like 
 <font>
  <b><i></i></b>
 </font>
  <b>bold</b>
  <i>italic</b>

and in IE it looks exactly the same as the document source!
I need to talk to Marc Attinasi about letting FONT to contain TABLE. 

FYI: When I did so in quirks mode we render almost the same as IE however in
strict mode we look completely different!!!!!
CCing 
yea, IE seems to keep the original document model for DOM access and selector
matching, and also a fixed up one for rendering - very interesting indeed.
The above patch would allow font properties to propagate into TABLE..however, in
order to emulate IE we need to find out what properties can and cannot propagate.

Note: FONT color property does not propagate inside TABLE on the trunk ( just
like IE ) but does on the branch ( this needs to be fixed ).
sr=jst
harish: That would be hyatt's area (he changed the way we block off inheritance
on tables with his rulenode landing).

hyatt: see harish's comments above.
Whiteboard: [fixed on the trunk]
Whiteboard: [fixed on the trunk] → [fixed on the trunk and branch]
Need to control properties that can propagate inside TABLE. This should happen
in Layout. Giving bug to Marc Attinasi.
Assignee: harishd → attinasi
Status: ASSIGNED → NEW
Right - we need to update the style-inheriting-into-tables quirk on the BRANCH.
Status: NEW → ASSIGNED
I've attached a pathc that makes the fix - it was done by Hyatt on the trunk, I
just applied it to my branch and tested it (it works, of course).
Whiteboard: [fixed on the trunk and branch] → [fixed on the trunk and branch], topembed+
Checked in to BRANCH Hyatt's fixes that have been on trunk for a while now:

/cvsroot/mozilla/content/html/style/src/nsHTMLStyleSheet.cpp,v  <-- 
nsHTMLStyleSheet.cpp
new revision: 3.218.14.1; previous revision: 3.218

/cvsroot/mozilla/content/html/style/src/nsRuleNode.cpp,v  <--  nsRuleNode.cpp
new revision: 3.4.2.2; previous revision: 3.4.2.1
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
For the record, the branch also needed the fix to bug 93270 (a crasher caused by
hyatt's fix above), which I'm about to move over to it as well.
QA Contact: bsharma → moied
Verified with build ID 20011115 on win2k, Marking verified.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: