On 19.9.2004 21:38 Uhr, Sam Hobbs wrote:
"Christian Stocker" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
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.
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 ;) )
> People seem so quick to criticize and slow to help.
This is soooo the wrong place for whining again about "nobody's helping me"...
Please move along, nothing to see here.
chregu
-- christian stocker | Bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich phone +41 1 240 56 70 | mobile +41 76 561 88 60 | fax +41 1 240 56 71 http://www.bitflux.ch | [EMAIL PROTECTED] | gnupg-keyid 0x5CE1DECB
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php