Closed
Bug 1262
Opened 26 years ago
Closed 25 years ago
wrong layout for empty tables
Categories
(Core :: DOM: HTML Parser, defect, P2)
Tracking
()
VERIFIED
FIXED
People
(Reporter: buster, Assigned: harishd)
References
Details
(Keywords: testcase, Whiteboard: Table should be a single pixel line all across the horizontal width of the window)
Attachments
(1 file)
264 bytes,
text/html
|
Details |
<html> <body> 1 <table border=1 width="100%"> <tr><td></td></tr> </table> 2 <br> 3 <table border=1 width="100%"> <tr></tr> </table> 4 </body> </html>
Assignee: buster → rickg
Status: ASSIGNED → NEW
Component: HTMLTables → Parser
The table code is doing the right thing with the content that it is being given. The "problem" is with the parser (or content sink?) I think what raptor does is compliant with the HTML 4.0 DTD. Perhaps this should be a "quirk"? The quirk behavior would be to throw away any table that didn't have at least one cell. Quite a bit of experimenting would be necessary to determine exactly what cases would need to be addressed.
hang on there bucko. This is a not a parser bug. You should address this issue with Kipp.
Updated•26 years ago
|
Status: NEW → ASSIGNED
Comment 4•26 years ago
|
||
per leger, assigning QA contacts to all open bugs without QA contacts according to list at http://bugzilla.mozilla.org/describecomponents.cgi?product=Browser
Updated•25 years ago
|
Target Milestone: M4 → M6
Comment 5•25 years ago
|
||
moving to M6
Comment 6•25 years ago
|
||
Moving to M8.
Comment 7•25 years ago
|
||
This behavior looks nearly correct to me, as since a table is there, but there is nothing in it, no </td>'s and the only <tr> is empty, with only a border, so I think showing a 1 pixel dot like that is technically correct, but since the table width was set at 100%, should the pixel thing not be a line across the screen? Since there is only one row, but the table has no depth, I do think that a 1 pixel wide line would be right to draw with that code. This may be realted to bug#5797 , which is causing a tables width not to be displayed properly. What it does is that it only makes it as wide as is needed to fit text, pictures etc. But since this is empty no room is needed and it only dispalyes the dot to satisfy the border=1 atribute?
Comment 8•25 years ago
|
||
Moving to M9.
Updated•25 years ago
|
Whiteboard: [MAKINGTEST] jonesev@home.com July 28
Updated•25 years ago
|
Whiteboard: [MAKINGTEST] jonesev@home.com July 28 → [TESTCASE] Table should be a single pixel line all across the horizontal width of the window
Comment 9•25 years ago
|
||
Comment 10•25 years ago
|
||
I attached the HTML file mentioned by buster@netscape.com and added one additional bit: <br> 5 <table border=1 width="100%"> <tr><td> </td></tr> </table> 6 As of the July 26 Linux build, the top table is close to correct (should be a single pixel line, but instead it has a space in there). The middle box is incorrect (should it be a line or not there at all because it is an incorrect table?) and the bottom box is close (It is correct but with a thicker than one pixel border. The same behavior is evident in the Win32 version.
Updated•25 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Comment 11•25 years ago
|
||
The layout is now very close to Nav4.x except that the 3 and 4 appear on different lines, which is what IE5 does. The first table can be made less tall by setting cellspacing and cellpadding to 0. If someone can find in any spec support for the notion that the 1st table should be a single line, I'll make it work that way in Standard mode.
Updated•25 years ago
|
Status: RESOLVED → VERIFIED
Comment 12•25 years ago
|
||
verified 1999080508
Updated•25 years ago
|
Status: VERIFIED → REOPENED
Comment 13•25 years ago
|
||
The layout is wrong again, using 1999102208 build. Reopening.
Updated•25 years ago
|
Assignee: karnaze → harishd
Status: REOPENED → NEW
Comment 14•25 years ago
|
||
Harish, a content dump reveals that the lines with "1" and "2" are coming before the 1st table which is a regression.
Assignee | ||
Comment 15•25 years ago
|
||
Aware of the problem and I've the fix in hand.
Updated•25 years ago
|
Target Milestone: M9
Assignee | ||
Comment 16•25 years ago
|
||
*** Bug 17113 has been marked as a duplicate of this bug. ***
Status: ASSIGNED → RESOLVED
Closed: 25 years ago → 25 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 17•25 years ago
|
||
Rectified the problem in CNavDTD::AddLeaf(). Marking FIXED.
Updated•25 years ago
|
Status: RESOLVED → VERIFIED
Comment 18•25 years ago
|
||
verified again
URL: see test case
Keywords: testcase
Whiteboard: [TESTCASE] Table should be a single pixel line all across the horizontal width of the window → Table should be a single pixel line all across the horizontal width of the window
You need to log in
before you can comment on or make changes to this bug.
Description
•