DOMDocument->saveHTML does not accept an optional DOMNode like saveXML

Request #39771 DOMDocument->saveHTML does not accept an optional DOMNode like saveXML
Submitted: 2006-12-07 19:34 UTC Modified: 2011-01-18 20:45 UTC
From: dave dot lane at gmx dot net Assigned: cataphract (profile)
Status: Closed Package: *General Issues
PHP Version: 5.2.0 OS: Linux
Private report: No CVE-ID: None

 [2006-12-07 19:34 UTC] dave dot lane at gmx dot net

Description:
------------
DOMDocument->saveHTML does not accept an optional DOMNode like DOMDocument->saveXML.

In saveXML this functionality is implemented using xmlNodeDump. libxml2 offers the html equivalent htmlNodeDump. 

Is there a good reason why this is not implemented?


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports

 [2011-01-18 20:45 UTC] cataphract@php.net

-Status: Open +Status: Closed -Package: Feature/Change Request +Package: *General Issues -Assigned To: +Assigned To: cataphract

 [2011-09-12 23:07 UTC] jbolter at gmail dot com

I am running PHP 5.3.6 but still get this error:

PHP Warning:  DOMDocument::saveHTML() expects exactly 0 parameters, 1 given

Any ideas?

 [2013-01-08 17:04 UTC] taswyn at gmail dot com

Note: when looking at the changelogs for this, the number of accepted arguments 
was never updated. This still only accepts one argument:
[revision 307562, both copies of dom/document.c]

158    ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_document_savehtml, 0, 0, 0)
159    ZEND_END_ARG_INFO();