Closed Bug 736291 Opened 13 years ago Closed 13 years ago

removeChild() does not completely remove the child node from the document

Categories

(Firefox :: Untriaged, defect)

10 Branch
x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 307415

People

(Reporter: justin.lottes, Unassigned)

Details

Attachments

(1 file)

Attached file test.html (deleted) —
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.2) Gecko/20100101 Firefox/10.0.2
Build ID: 20120215223356

Steps to reproduce:

I have a form that dynamically adds and removes form elements.  It also reuses elements if they already exist.  I have attached a simple page with some javascript that demonstrates the problem.


Actual results:

If an element is removed using the removeChild function, there is a ghost of the element that still exists in the document object.  It does not show up in FireBug, however it is still there.


Expected results:

removeChild should remove any references in the document object.
I forgot to add...

You can completely delete the object with....

delete document.form.FORM_NAME[OBJECT_NAME];
Attachment #606371 - Attachment mime type: text/plain → text/html
The button appears to remove for me on 3.6.28 and the latest nightly. How am I supposed to detect the ghost?
Click on Remove button a second time.  Sorry, forgot to mention that.
Maybe Bug 307415
I believe it is.  I didn't use the right search terms.  Strangely, Chrome does the same thing, but IE handles it correctly.
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: