Doc #53890 [NEW]: DOMDocumentFragment and AppendChild

From: Date: Mon, 31 Jan 2011 11:21:50 +0000
Subject: Doc #53890 [NEW]: DOMDocumentFragment and AppendChild
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-5895@lists.php.net to get a copy of this message
From: Operating system: PHP version: Irrelevant Package: Documentation problem Bug Type: Documentation Problem Bug description:DOMDocumentFragment and AppendChild Description: ------------ --- From manual page: http://www.php.net/class.domdocumentfragment --- Undocumented behaviour for appendChild using a DOMDocumentFragment Test script: --------------- $doc=new DOMDocument(); $frag=$doc->createDocumentFragment(); $root=$doc->appendChild( $doc->createElement('root') ); $frag->appendChild( $doc->createElement('fragNode') ); echo $frag->childNodes->length; $root->appendChild($frag); echo $frag->childNodes->length; Expected result: ---------------- Documented behaviour. Actual result: -------------- 1 0 -- Edit bug report at http://bugs.php.net/bug.php?id=53890&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=53890&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=53890&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=53890&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=53890&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=53890&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=53890&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=53890&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=53890&r=needscript Try newer version: http://bugs.php.net/fix.php?id=53890&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=53890&r=support Expected behavior: http://bugs.php.net/fix.php?id=53890&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=53890&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=53890&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=53890&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=53890&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=53890&r=dst IIS Stability: http://bugs.php.net/fix.php?id=53890&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=53890&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=53890&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=53890&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=53890&r=mysqlcfg

« previous php.doc.bugs (#5895) next »