Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

firefox crash when using this key word with removeChild 1

Status
Not open for further replies.

j4606

MIS
Nov 28, 2005
349
US
I have already worked around this issue so it isn't too important but I want to try and figure out why my browser was crashing.
Using this code to remove an object causes firefox to crash.
Code:
   this.parentNode.parentNode.removeChild(this.parentNode);

Anyone ever encounter this issue? I think it's caused because I'm using the this key word with removeChild. I have sense implemented id references and everything seems to work fine.
 
I've never seen that, but I could only guess that since you are removing the parent element of "this", that "this" becomes an invalid reference before the removeChild method has run it's course.

That's an interesting find.

-kaht

Lisa, if you don't like your job you don't strike. You just go in every day and do it really half-assed. That's the American way. - Homer Simpson

[small]<P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <.</B>[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top