Closed Bug 56245 Opened 25 years ago Closed 24 years ago

Table cell wrongly located

Categories

(Core :: DOM: HTML Parser, defect, P3)

defect

Tracking

()

VERIFIED FIXED
mozilla0.9.4

People

(Reporter: fred, Assigned: harishd)

References

()

Details

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

Attachments

(8 files)

From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.17-21mdk i686; en-US; m18) Gecko/20001011 BuildID: 2000101108 Page rendering is completly broken Reproducible: Always Steps to Reproduce: Load URL and compare with Netscape 4.75 Actual Results: Cells called "Programmes Télé" and "Articles" are displayed below "Salles de Cinema" Expected Results: Theses cells should be on the right of "Salles de Cinema" (Hard to explain, check correct rendering using Netscape 4)
Reporter: Can you simplify your sample url please. I did a quick check on your code in your second frame where the problem is occuring. From my own html crafting experiences I usually get these display results from missing end </table>, </tr>, </td> tags. In your url, there is a missing </td> and </tr>. You might find this fixes it. I'll check back.
See the problem on Windows 98 Mozilla Build #2000103104. Marking as new.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Linux → All
From the testcase provided, 2 things are causing the problem. (1) The FONT tag contains a table (illegal), and (2) there is an unknown tag in the FONT tag.
Marking INVALID due to bad HTML.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → INVALID
Keyser Sosez: Are you really sure, that this one should be marked as invalid ? I think mozilla sould ignore invalid tags, and not render the table different.
Reopening per above comment. Ksozez, please don't be so quick invalidating bugs. I attached the same testcase again without the invalid HTML tag to show the difference. I agree that Mozilla should just ignore that tag. NS 4.x does this right, so adding 4xp (and testcase) keyword.
Status: RESOLVED → REOPENED
Keywords: 4xp, testcase
Hardware: PC → All
Resolution: INVALID → ---
description for second testcase is not correct: different rendering without <any unknown tag>
Adding self to cc:. Bug is still INVALID if you ask me.
i think everyone knows that the html used in this examples is invalid. but this does not explain the reason why the table rendering is different and because of this, this bug should stay open until we know whats the reason for this behavior.
Over to parser to figure out what to do with this.
Component: HTMLTables → Parser
WFM win98 CVs 2001-03-14
still the same problem on win98 buildid 2001031604 - this does not work for me.
Still present on Linux buildid 2001031611
The content model is wrong. Reassigning to harishd.
Assignee: karnaze → harishd
Status: REOPENED → NEW
Target Milestone: --- → mozilla1.0
I don't know if it's a related bug but check that bug under MacOS: Bug 83605 Here a HTML test doc http://bugzilla.mozilla.org/showattachment.cgi?attach_id=40741 Result under MacOS http://bugzilla.mozilla.org/showattachment.cgi?attach_id=40854 But under Win98 this page is perfect... Same prob under linux and MacOS!?
QA Contact: chrisd → bsharma
moving to m0.9.4.
Status: NEW → ASSIGNED
Target Milestone: mozilla1.0 → mozilla0.9.4
*** Bug 84867 has been marked as a duplicate of this bug. ***
Whiteboard: [fix in hand]
The early return in the first loop implies that we may not fall into the second loop if there's a block container anywhere on the stack. This behavior is different (though not necessarily incorrect) relative to the original code. Harish is going to confirm that the new behavior is correct. Assuming he can, sr=vidur. One case that will behave different is <p>Some text <b>bold text</font>more bold</b></p>. With the new code, the formatting should be the same, but the content model might be different.
*** Bug 94095 has been marked as a duplicate of this bug. ***
*** Bug 95891 has been marked as a duplicate of this bug. ***
Harish's new patch attempts to deal with the problem that user-defined (non-html) tags interfere with residual style activation. I believe his solution to this is a bit too drastic. I have a problem with the idea that user-defined tags will always be treated as leaf elements. This is contrary to existing (and IE) behavior. It does fix the problem that user-defined tags prevent residual style activation, but has the potential to introduce new problems to existing content. A compromise may be to have user-defined tags inherit their parent's behavior w.r.t. containership. In the meantime, I'm comfortable with Harish checking in patch v1.1. The case that I questioned in my previous comment is correctly dealt with because of residual style activation.
*** This bug has been marked as a duplicate of 66772 ***
Status: ASSIGNED → RESOLVED
Closed: 25 years ago24 years ago
Resolution: --- → DUPLICATE
Problem 1 --------- Misplaced /FONT was closing out TABLE. I've added logic such that if a residual style tag ( inline element ) cannot contain a tag ( block element ) then it cannot close it either. Which implies that the end tag is misplaced. Problem 2 --------- Userdefined tag present between an inline element and a block element was causing inline element to contain block element. The fix was to make userdefined tag behave as an inline element.
sr=vidur. The latest patch makes user-defined tags act as inline elements in terms of their containership. This is a reasonable compromise, though we may still not be completely compatible with IE.
a=tor on behalf of drivers. In the future please use dependencies instead of duplicates or mark the dup the other way around so that you're working on a open bug. Reopening for now so it shows up on appropriate queries.
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
FYI: To begin with I was working on this bug ( not bug 66772 ). Recently, bug 66772 got assigned to me and since it is WRMB I couldn't mark 66772 as a dup of 56245. That would make this a special case..though I totally understand your concern. Also, I have commented on 66772 regarding this fix.
Status: REOPENED → ASSIGNED
Added topembed keyword since this bug is a dup of bug 66772 ( WRMB ).
Keywords: topembed
Whiteboard: [fix in hand] → [fixed on trunk]
Almost fixed (using Buildid 2001082221) but there is some artefact in second column
Frederic: Could you be more specific on what exactly the problem is?
Frederic: I'm not sure if you're talking about the same thing ( i.e., space between "Programmes tele" and "titre" ) as my testcase ( id=46894 ). If it's then we need to open up a new bug on it.
I was talking about space between "Programmes tele" and "titre"... Are you sure it we should close this bug, since provided url still have exhibit a cell location problem ?
The bug that we're seeing is entirely different from the original problem. We therefore need to open up a new bug. I'll close this bug after I land the change on the branch.
fixed on the trunk & branch. Marking FIXED.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago24 years ago
Resolution: --- → FIXED
Whiteboard: [fixed on trunk] → [fixed on the trunk and branch]
QA Contact: bsharma → moied
verified fixed on branch build ID 20010926.
Keywords: vtrunk
Marking bug as verified with build ID 20011116 on win2k
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: