How about a saveXHTML for the DOM?
| From: | Raymond Irving | Date: | Thu, 09 Apr 2009 02:01:31 +0000 |
| Subject: | How about a saveXHTML for the DOM? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-291256@lists.php.net to get a copy of this message | ||
Hello,
I'm thinking that it's about time a saveXHTML() method be added to the DOM objects.
XHTML is supported by all major browsers and libxml2 so I can't see why we should be stuck with
saveHTML() and saveXML(). While it's true that some developers are using saveXML(), it does not
always comply with the XHTML standards. Another problem with saveXML() is the lack of support for
HTML entities.
There are many tricks out there to cleanup the output of saveXML() but I think having a native
function would be much more efficient and faster.
What do you think?
__
Raymond Irving