note 82303 added to function.dom-domnode-removechild

From: Date: Fri, 04 Apr 2008 18:57:54 +0000
Subject: note 82303 added to function.dom-domnode-removechild
Groups: php.notes 
Request: Send a blank email to php-notes+get-137935@lists.php.net to get a copy of this message
I used the following to delete an entire node using the child element: <?php $childElement->parentNode->parentNode-> removeChild($childElement->parentNode); ?> I could not have thought of it without the help of everyone who contributed to this thread. Thanks! (I had to introduce the extra space between parentNode->removeChild to get rid of the wordwrap() warning while posting this note) ---- Server IP: 209.41.74.194 Probable Submitter: 160.36.233.22 ---- Manual Page -- http://www.php.net/manual/en/function.dom-domnode-removechild.php Edit -- https://master.php.net/note/edit/82303 Del: integrated -- https://master.php.net/note/delete/82303/integrated Del: useless -- https://master.php.net/note/delete/82303/useless Del: bad code -- https://master.php.net/note/delete/82303/bad+code Del: spam -- https://master.php.net/note/delete/82303/spam Del: non-english -- https://master.php.net/note/delete/82303/non-english Del: in docs -- https://master.php.net/note/delete/82303/in+docs Del: other reasons-- https://master.php.net/note/delete/82303 Reject -- https://master.php.net/note/reject/82303 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#137935) next »