Closed Bug 261892 Opened 20 years ago Closed 15 years ago

{inc} doctype not parsed properly when page loaded REALLY slowly

Categories

(Core :: DOM: HTML Parser, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: ajschult784, Unassigned)

References

Details

(Keywords: testcase, Whiteboard: [fixed by the HTML5 parser])

Attachments

(1 file)

with linux trunk build 2004092707, a DIV and nested TABLE are displayed with 100% height (of the window) if the page is loaded very slowly. The TABLE has 100% height style, but the DIV does not, so the DIV and TABLE should be the normal height for one line (except in quirks mode). I serve up the testcase with a PHP script that relays the file in chunks. If the chunk size is 60 bytes or less, the bug shows up. I was unable to trigger the bug with document.body.offsetHeight. Also, when the bug shows up, a debug build prints the following 4 times (suggesting a parser bug?): WARNING: NS_ENSURE_TRUE(NS_SUCCEEDED(result)) failed, file nsHTMLTokens.cpp, line 288 WARNING: NS_ENSURE_TRUE(NS_SUCCEEDED(result)) failed, file nsHTMLTokenizer.cpp, line 847
Attached file testcase
<div style="border: 1px solid red;"> <table style="height: 100%" border="1"> <tbody><tr><td>&nbsp;</td></tr></tbody> </table> </div>
I can reproduce it 100% (at least, until now) with the clone slowly bookmarklet: http://www.squarefree.com/bookmarklets/testbrowsers.html Choose 1 character at a time, to reproduce the bug.
Component: Layout → Layout: Tables
wfm :-(, could you setup the testcase at some webserver? If this behaviour is shown is the rendering mode really standards, or does the slowness trigger quirks mode? One could add some obvious quirk code to detect the quirks mode rendering. Clone slowly removes the doctype so it creates a quirks mode document.
a) yes, the doc is in quirks mode b) http://www.sens.buffalo.edu/~ajs42/slow.php?file=261892.html&chunk=1000&delay=100000 (look carefully at the first line) c) The key seems to be that the doctype needs to be delivered in separate chunks ==> parser
Assignee: nobody → parser
Component: Layout: Tables → HTML: Parser
QA Contact: layout → mrbkap
Summary: {inc} div and table displayed with 100% height when loaded REALLY slowly → {inc} doctype not parsed properly when page loaded REALLY slowly
*** Bug 313895 has been marked as a duplicate of this bug. ***
See also bug 268442 for a similar problem when using document.write().
OS: Linux → All
Hardware: PC → All
Assignee: parser → nobody
QA Contact: mrbkap → parser
Depends on: html5-parsing
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Whiteboard: [fixed by the HTML5 parser]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: