Closed Bug 280999 Opened 21 years ago Closed 21 years ago

Nested DIV tags with "display: none" get replicated when "display" changed via javascript

Categories

(SeaMonkey :: General, defect)

x86
All
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: muzzle, Unassigned)

Details

(Keywords: testcase)

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20040913 Firefox/0.10.1 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20040913 Firefox/0.10.1 The uploaded attachment is a series of nested DIV tags with "display: none" set. As you click on links, a javascript function toggles the next DIV tag between "none" and "inline". When you are four DIV tags deep, changing the "display" attribute of the next DIV tag causes an entire sub-tree of the DIV hierarchy to be appended (thus appearing twice). Reproducible: Always Steps to Reproduce: 1. Open attached HTML page 2. Click on text where instructed Actual Results: A sub-tree of the DIV hierarchy is erroneously replicated and displayed twice. Expected Results: The hierarchy of DIVs should not be duplicated. Internet Explorer behaves as I'd expect. If you look at the attached sample in the DOM inspector, you can easily see that something is wrong. The DIV tags are displayed twice in the browser, but you can only find them once in the DOM inspector.
WFM, 2005-02-02-05 trunk Linux (I do see the bug in 1.7.3 though). muzzle@imdb.com, dose it occur if you try a nightly build? http://ftp.mozilla.org/pub/mozilla.org/mozilla/nightly/latest-trunk
Keywords: testcase
This got fixed back in June by the patch for bug 244454
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: