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)
Core
DOM: HTML Parser
Tracking
()
RESOLVED
FIXED
People
(Reporter: ajschult784, Unassigned)
References
Details
(Keywords: testcase, Whiteboard: [fixed by the HTML5 parser])
Attachments
(1 file)
366 bytes,
text/html
|
Details |
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
Reporter | ||
Comment 1•20 years ago
|
||
<div style="border: 1px solid red;">
<table style="height: 100%" border="1">
<tbody><tr><td> </td></tr></tbody>
</table>
</div>
Comment 2•20 years ago
|
||
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.
Reporter | ||
Comment 4•20 years ago
|
||
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
Comment 5•19 years ago
|
||
*** Bug 313895 has been marked as a duplicate of this bug. ***
Comment 6•19 years ago
|
||
See also bug 268442 for a similar problem when using document.write().
OS: Linux → All
Hardware: PC → All
Updated•15 years ago
|
Assignee: parser → nobody
QA Contact: mrbkap → parser
Updated•15 years ago
|
Depends on: html5-parsing
Updated•15 years ago
|
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.
Description
•