Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:12903 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 25603 invoked by uid 1010); 19 Sep 2004 19:38:21 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 25579 invoked by uid 1007); 19 Sep 2004 19:38:21 -0000 Message-ID: <20040919193821.25574.qmail@pb1.pair.com> To: internals@lists.php.net References: <20040919183045.63473.qmail@pb1.pair.com> <414DD1DD.80205@bitflux.ch> Date: Sun, 19 Sep 2004 12:38:25 -0700 Lines: 36 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Response X-Posted-By: 24.165.85.87 Subject: Re: [PHP-DEV] Copying HTML from a document to another document From: SoCalSam@GMail.com ("Sam Hobbs") "Christian Stocker" wrote in message news:414DD1DD.80205@bitflux.ch... > > > On 19.9.2004 20:30 Uhr, Sam Hobbs wrote: >> Please see: >> >> Copying HTML from a document to another document >> http://marc.theaimsgroup.com/?l=php-general&m=109419037409980&w=2 >> >> It has been more than two weeks without a reply. I suspect there is a bug >> in PHP. I assume the people looking at that list can't answer the >> question. >> >> Am I supposed to ask questions such as that in this list instead.? > > Nope, file a bug report, if you think, it's a bug ;) > > But don't bother, it's not a bug. You have to use > $DomDocuemnt->importNode(), if you want to copy a node from one document > to another. See > http://ch.php.net/manual/en/function.dom-domdocument-importnode.php > and the W3C docs. I did try many things, including importNode. I did look at the documentation as much as I can. I looked at many other sites. I converted the PHP code to JavaScript, as I said in the other message. The JavaScript version does not need importNode. I have heard the "read the manual" song many times. Just saying look at the manual does not help. How do I use importNode to do this? The manual does not explain how and does not help me to understand how. People seem so quick to criticize and slow to help.