Re: Copying HTML from a document to another document
| From: | Sam Hobbs | Date: | Sun, 19 Sep 2004 21:30:03 +0000 |
| Subject: | Re: Copying HTML from a document to another document | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-12908@lists.php.net to get a copy of this message | ||
"Christian Stocker" <chregu@bitflux.ch> 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.