From: geoffers+phpbugs at gmail dot com Operating system: N/A PHP version: 5.3SVN-2010-02-09 (SVN) PHP Bug Type: DOM XML related Bug description: DOMDocument::saveHTML() should be able to take a node as an arg
Description: ------------ At the moment DOMDocument::save() and DOMDocument::saveXML() both take an optional first argument which is a node to serialize; DOMDocument::saveHTML() and DOMDocument::saveHTMLFile() have no such option and always serialize the whole file. For cases where HTML serialization is needed of a specific node, all that can be done is doing it within PHP code (which is comparatively very slow). As libxml includes the needed APIs to do this, it doesn't appear to be overly complex to implement. I'll try to write a patch for this later. -- Edit bug report at http://bugs.php.net/?id=50973&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50973&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50973&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50973&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=50973&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50973&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=50973&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=50973&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=50973&r=needscript Try newer version: http://bugs.php.net/fix.php?id=50973&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=50973&r=support Expected behavior: http://bugs.php.net/fix.php?id=50973&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=50973&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=50973&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=50973&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50973&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=50973&r=dst IIS Stability: http://bugs.php.net/fix.php?id=50973&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=50973&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=50973&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=50973&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=50973&r=mysqlcfg