Closed
Bug 292515
Opened 20 years ago
Closed 20 years ago
Incorrectly coded table does not display as expected/as in IE
Categories
(Core :: DOM: HTML Parser, defect)
Core
DOM: HTML Parser
Tracking
()
RESOLVED
WONTFIX
mozilla1.9alpha1
People
(Reporter: mike, Assigned: mrbkap)
Details
(Keywords: qawanted, testcase)
Attachments
(1 file, 1 obsolete file)
|
119 bytes,
text/html
|
Details |
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8b) Gecko/20050217 Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8b) Gecko/20050217 A site I was using had an incorrectly coded table embedded within a form. Gecko's quirks mode did not display the page as the author intended. Page should display with a nicely lined up column of items to choose from. Instead, all the items are jumbled together. Reproducible: Always
| Reporter | ||
Comment 1•20 years ago
|
||
all inputs are pushed outside the table by the parser. This is not a layout issue but a parser issue. BTW, the GIGO principle also applies to browsers: garbage in garbage out. Invalid IMHO, the garbage that every browser makes out of is a) unspecified b) one should not rely on it.
Component: Layout: Tables → HTML: Parser
| Reporter | ||
Comment 3•20 years ago
|
||
(In reply to comment #2) > Invalid IMHO, the garbage that every browser makes out of is > a) unspecified > b) one should not rely on it. While I agree with this, too many people say things like "It works in Internet Explorer". As long as IE is the dominant browser and allows this kind of ****, unfortunately I think Mozilla is going to have to jump through a few hoops to win people over.
Comment 4•20 years ago
|
||
Having a minimal testcase would go a long way towards getting this fixed. Mike, do you have time to create one by any chance? From what I can tell from the huge chunk of HTML so far, the residual style handling messes things up somehow....
Keywords: qawanted
Comment 5•20 years ago
|
||
This testcase is shown in one line in Mozilla. In IE and Opera its shown on 2 rows
Attachment #182320 -
Attachment is obsolete: true
| Assignee | ||
Comment 6•20 years ago
|
||
I'll take and confirm this. There might be a dupe, in which case feel free to dupe and I'll take that one. Apparently, we should only ship content out of tables if there is no <tr> at all and assume <tr><td> otherwise. This is probably a 1.9a sort of fix. (Note to self: check what IE/Opera do in the face of <table><tr>foo<td>bar</td></tr></table>)
Assignee: parser → mrbkap
Status: UNCONFIRMED → NEW
Ever confirmed: true
QA Contact: mrbkap → parser
Target Milestone: --- → mozilla1.9alpha
| Reporter | ||
Comment 7•20 years ago
|
||
(In reply to comment #6) > (Note to self: check what IE/Opera do in the face of > <table><tr>foo<td>bar</td></tr></table>) Mozilla, IE and Opera all handle this one the same way apparently treating it as though the foo is in a header with the bar slightly indented on the next line.
| Assignee | ||
Comment 8•20 years ago
|
||
This isn't as simple as I'd originally thought. IE isn't assuming <tr><td>, instead, when it pushes the misplaced text out of the table, it is simply inducing a line break where there's a <tr> (this becomes apparent when adding a border to the table in the testcase) when pushing the text out. Opera does this by making the missing <td>s be <td><caption> ... however, we can't do that because multiple captions get swallowed (as well as other CNavDTD specific issues). I'll see if I can emit <br>s (before? and) after misplaced text to emulate this.
| Assignee | ||
Comment 9•20 years ago
|
||
I'm marking this bug WONTFIX after some more investigation. In order to support this quirk, we'd have to maintain a stack of table states (something that would, ironically be easy in COtherDTD) in CNavDTD, and adding that complexity and extra bloat specifically for this quirk is simply not worth it. Note that the stack is necessary to make sure that nested tables wouldn't confuse us into adding bad line breaks in seemingly random places. If more dupes are filed on this, then perhaps we should consider it again.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•