Re: [xmljs-users] DOMNode.removeChild() doesn't cleanup pointers
Brought to you by:
djoham,
witchhunter
From: David J. <dj...@ya...> - 2004-03-15 16:20:30
|
Hi Stepan! Thanks for the bug report. I'll get this fix into 3.1. Would it be possible for you to provide a quick recreation for me on this bug. I'd like to take it and put it into one of the test suites so we make sure this doesn't happen again... Thanks! David --- Stepan Riha <xm...@no...> wrote: > The DOMNode.removeChild(oldChild) method does not clean up nextSibling and > previousSibling pointers of the oldChild. This can lead to problems when the > child is then appended to some other node. > > The fix is in DOMNode.prototype.removeChild. Replace > > return oldChild; > > with > > oldChild.previousSibling = null; > oldChild.nextSibling = null; > return oldChild; > > > - Stepan > > -- > Stepan Riha > xm...@no... > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > xmljs-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmljs-users __________________________________ Do you Yahoo!? Yahoo! Mail - More reliable, more storage, less spam http://mail.yahoo.com |