If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

HTML files above 16384 bytes skewers DOM behavior




DOM: CSS Object Model
15 years ago
12 years ago


(Reporter: SineSwiper, Unassigned)


Windows XP

Firefox Tracking Flags

(Not tracked)



(1 attachment)



15 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3a) Gecko/20021212
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3a) Gecko/20021212

This one is fairly strange and hard to explain.  I was trying to debug why a
piece of JS code wasn't working in Mozilla, but works in IE.  After trying to
figure out the problem by systematically removing pieces of HTML code, I noticed
a pattern: the problem would fix itself after the HTML size dips below 16K. 
I'll attach the test page I was using.

Reproducible: Always

Steps to Reproduce:
1. View the HTML file.
2. Move your cursor on one of the (#/#) texts at the end of one of the message
3. It will do the wrong thing: which is bump the list item to the bottom and
screw up the order of things.
4. Now save the file somewhere, and edit it.
5. Remove the JS commented line that looks like ///////////.  (There are two of
them.)  This will dip the file size to below 16K.
6. Save the file and try step #2 again.
7. Now, it will do the right thing, which is simply change the color of the b/g.

This isn't affected by what style is changed, as I've tested it with changing
the font as well.  It will still have the same behavior.  Is this linked to some
strange buffer overflow or memory error?

Comment 1

15 years ago
Created attachment 111025 [details]
Test Case

Comment 2

15 years ago
Work for me on WinXP Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3b)
Gecko/20030104. Testcase changes backgroud color as described (exept elements
with class expand-something, they do dom.display = 'none', as as stated in

Comment 3

15 years ago
Just installed the lastest nightly, and it still doesn't work for me.  I'm using:

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3b) Gecko/20030109
under Windows XP

I'm going to try rebooting the system, just in case there's something really
fudged up over here.

Comment 4

15 years ago
Reboot.  Same problem.

BTW, lemme explain the function of it a little bit.  When you put your cursor on
the 0/0, it's supposed to highlight the lower thread (but NOT start moving stuff
around).  If you click on it, it will collapse that thread.  The problem is only
with the onMouseOver.

Can we get anybody else to try this out?

Comment 5

15 years ago
When you mouse over on 0/0 there is not supposed to be any action.

<span class=new>0</span>/<span class=new>0</span>)

And for such span there is no action in function ToggleUL (ElNum). There is
supposed to be highlight in topmost 1/1, for exemple, and it work. For me
baheviour of Mozilla and IE are absolutely equal.

Comment 6

15 years ago
I encountered the same stated problem on my laptop running Mozilla/5.0 
(Windows; U; Windows NT 5.0; en-US; rv:1.3b) Gecko/20030202, Win 2k which is 
that the highlighted item will move around when the number besides it is 
highlighted. When the file size is reduced to 16k, the problem is fixed.

However, I do not encounter the problem on my desktop which is running the same 
OS/browser configuration, the difference though is the cache size, which is set 
to 4mb memory/64mb disk for laptop and 16mb mem/512mb disk for desktop

Comment 7

15 years ago
My cache size was 4mb/50mb.  I changed it to 16mb/512mb, restarted Mozilla, 
and I still get the same thing.  Tried clearing the cache and it doesn't 
work.  Maybe it needs a full cache?

Kelvyn, is there any way for you to change the behavior of the bug on either 
the laptop or the desktop, using Mozilla's Preferences?  Does reducing or 
enlarging the cache size on the laptop/desktop change it?

Comment 8

15 years ago
I just recently DL'ed the latest version of Netscape Navigator 7.0.  I've 
encountered a bug with it on a forum board that i frequent.  When ever my mouse 
icon rolls over a button that collapses and expands threads, the whole thread 
gets reversed.  Meaning, replies that were at the top now go to the bottom.

I do not get this bug with MS explorer.  I have not changed my Netscape 
settings in anyway from when i DL'ed it, nor have i changed it afterwards to 
try and prevent it.   I run both on Win98SE.
Mass-reassigning bugs to dom_bugs@netscape.com
Assignee: jst → dom_bugs
This is an automated message, with ID "auto-resolve01".

This bug has had no comments for a long time. Statistically, we have found that
bug reports that have not been confirmed by a second user after three months are
highly unlikely to be the source of a fix to the code.

While your input is very important to us, our resources are limited and so we
are asking for your help in focussing our efforts. If you can still reproduce
this problem in the latest version of the product (see below for how to obtain a
copy) or, for feature requests, if it's not present in the latest version and
you still believe we should implement it, please visit the URL of this bug
(given at the top of this mail) and add a comment to that effect, giving more
reproduction information if you have it.

If it is not a problem any longer, you need take no action. If this bug is not
changed in any way in the next two weeks, it will be automatically resolved.
Thank you for your help in this matter.

The latest beta releases can be obtained from:
Firefox:     http://www.mozilla.org/projects/firefox/
Thunderbird: http://www.mozilla.org/products/thunderbird/releases/1.5beta1.html
Seamonkey:   http://www.mozilla.org/projects/seamonkey/
This bug has been automatically resolved after a period of inactivity (see above
comment). If anyone thinks this is incorrect, they should feel free to reopen it.
Last Resolved: 12 years ago
Resolution: --- → EXPIRED
You need to log in before you can comment on or make changes to this bug.