Closed Bug 525619 Opened 16 years ago Closed 15 years ago

RemoveChild() only works with 2 clicks

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: blueflames2007, Unassigned)

Details

(Whiteboard: [CLOSEME 2011-1-30])

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.4) Gecko/20091016 Firefox/3.5.4 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.4) Gecko/20091016 Firefox/3.5.4 //javascript part function function2() { myList.removeChild(myList.firstChild); } //html content <ul id="myList"> <li>First list element</li> <li>Second list element</li> </ul> <a href="javascript:void(0)" onClick="function2();">asd</a> When u click on the link "asd" , the removeChild function do nothing until you click on it the second time. Reproducible: Couldn't Reproduce
I did some small modifications to the example to get it working. And the reason it needs two clicks is cause you have white space nodes in the dom, the first click removes those (test1). If you remove it, it works as your expecting (test2). By this i would say it works as it sould => invalid.
Reporter, are you still seeing this issue with Firefox 3.6.13 or later in safe mode? If not, please close. These links can help you in your testing. http://support.mozilla.com/kb/Safe+Mode http://support.mozilla.com/kb/Managing+profiles You can also try to reproduce in Firefox 4 Beta 8 or later, there are many improvements in the new version, http://www.mozilla.com/en-US/firefox/all-beta.html
Whiteboard: [CLOSEME 2011-1-30]
No reply, INCOMPLETE. Please retest with Firefox 3.6.13 or later and a new profile (http://support.mozilla.com/kb/Managing+profiles). If you continue to see this issue with the newest firefox and a new profile, then please comment on this bug.
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: