ID:               50973
 User updated by:  geoffers+phpbugs at gmail dot com
 Reported By:      geoffers+phpbugs at gmail dot com
 Status:           Open
 Bug Type:         DOM XML related
 Operating System: N/A
 PHP Version:      5.3SVN-2010-02-09 (SVN)
 New Comment:

http://pastebin.ca/1792855 is a patch for this, based upon saveXML().
There is one notable difference between what I have, based on that, and
what is currently there: the if (mem) within the if (!size) is not
present within saveXML(), and nor as a result in my patch. I presume
that it should either be in both saveXML and saveHTML or neither: any
idea?

And, of course, my prior comment was wrong: it's only saveXML() which
has the argument, not save().


Previous Comments:
------------------------------------------------------------------------

[2010-02-09 16:00:06] geoffers+phpbugs at gmail dot com

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 this bug report at http://bugs.php.net/?id=50973&edit=1

Reply via email to