cataphract Tue, 18 Jan 2011 19:56:09 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=307562
Log: - Fixed wrong function call in original commit to FR #39771. Bug: http://bugs.php.net/39771 (Closed) DOMDocument->saveHTML does not accept an optional DOMNode like saveXML Changed paths: U php/php-src/branches/PHP_5_3/ext/dom/document.c U php/php-src/trunk/ext/dom/document.c Modified: php/php-src/branches/PHP_5_3/ext/dom/document.c =================================================================== --- php/php-src/branches/PHP_5_3/ext/dom/document.c 2011-01-18 19:45:38 UTC (rev 307561) +++ php/php-src/branches/PHP_5_3/ext/dom/document.c 2011-01-18 19:56:09 UTC (rev 307562) @@ -1821,7 +1821,7 @@ saveempty = xmlSaveNoEmptyTags; xmlSaveNoEmptyTags = 1; } - xmlNodeDump(buf, docp, node, 0, format); + htmlNodeDumpFormatOutput(buf, docp, node, 0, format); if (options & LIBXML_SAVE_NOEMPTYTAG) { xmlSaveNoEmptyTags = saveempty; } Modified: php/php-src/trunk/ext/dom/document.c =================================================================== --- php/php-src/trunk/ext/dom/document.c 2011-01-18 19:45:38 UTC (rev 307561) +++ php/php-src/trunk/ext/dom/document.c 2011-01-18 19:56:09 UTC (rev 307562) @@ -2318,7 +2318,7 @@ RETURN_FALSE; } - xmlNodeDump(buf, docp, node, 0, format); + htmlNodeDumpFormatOutput(buf, docp, node, 0, format); mem = (xmlChar*) xmlBufferContent(buf); if (!mem) { RETVAL_FALSE;
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php