Closed Bug 22865 Opened 25 years ago Closed 23 years ago

Incomplete rendering of page with bad HTML

Categories

(Core :: Layout, defect, P3)

x86
Windows 95
defect

Tracking

()

RESOLVED WONTFIX

People

(Reporter: mmastrac, Assigned: buster)

References

()

Details

(Keywords: compat)

I've noticed a problem rendering a page output from my ppmtohtml utility, which converts a pixmap format image to an html page using <font color> tags. Problem: The above URL fails to render completely under the latest Mozilla builds. The browser displays about 15 lines of the image and then stops. Expected Behaviour: The page should render fully, as it does in IE and Netscape. Possible cause: The page is built up from a number of <font color="xxxxxx"> tags without closing tags (this is done to save space). I'm wondering if Mozilla runs out of space for the nested tags and just barfs on the rest of the page. There are no errors in the console window and View Source outputs the entire page source. I do admit that the HTML in this page is clearly violating the "close every tag" rule, but shouldn't it still render properly? Adding a closing font tag to every opening <font color> tag is a possiblility, but this would dramatically increase the size of the page. What is Mozilla's stand on not properly rendering bad HTML? Also, what is the maximum allowable nesting depth for HTML tags?
Assignee: troy → kipp
Issue with the block code and how much stack space it uses. This ultimately limits the depth of the frame model
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → REMIND
the max reflow depth is 500 levels of nested tags. We can debate what the limit ought to be if you wish, with recent optimizations in our stack usage I was able to run at 1000 safely. But the point is there will be a limit for the first release at least. In later releases we could play games with detecting the actual stack size and allowing reflow to run it's course up to some % of available stack size, but it's too late in the game to add code like that now. Marking "WONTFIX", hopefully this will be addressed post first release.
Marking verified remind per last comments.
Status: RESOLVED → VERIFIED
REMIND is deprecated per bug 35839.
Status: VERIFIED → REOPENED
Resolution: REMIND → ---
HTML spec limits tag depth to 100 tags. WONTFIX.
Status: REOPENED → RESOLVED
Closed: 25 years ago23 years ago
Keywords: compat
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.