Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:12908 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 63204 invoked by uid 1010); 19 Sep 2004 21:29:58 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 63037 invoked by uid 1007); 19 Sep 2004 21:29:58 -0000 Message-ID: <20040919212958.63036.qmail@pb1.pair.com> To: internals@lists.php.net References: <20040919183045.63473.qmail@pb1.pair.com> <414DD1DD.80205@bitflux.ch> <20040919193821.25574.qmail@pb1.pair.com> <414DF200.30409@bitflux.ch> Date: Sun, 19 Sep 2004 14:30:03 -0700 Lines: 24 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:414DF200.30409@bitflux.ch... > > http://www.w3.org/TR/DOM-Level-2-Core/core.html#Core-Document-importNode > > explains it all quite good. And it's no guarantee, that it works in php5, > if it works in JS (the JS implementations aren't flawless ;) ) I think it is reasonable to ask for the one or two lines of PHP code that solves the problem. As I have said, I did try to do it myself. I do realize that the JavaScript solution might use a non-standard extension. There is an article someone found (that uses Java, not JavaScript) that does say that importNode is needed, but I don't know how to convert that sample code to PHP also. We could discuss that too, but I am still not sure if this (the internals) newsgroup/forum is where that should be done. So again, if these replies should be in the other forum, then I am sorry for replying in this forum. If someone has a suggestion for how to get the replies in the other forum (if that is where they belong) then I will do the best I can.