[2009年01月17日 13:58 UTC] romain dot lalaut at laposte dot net
Description: ------------ It seems that saving a DOMDocument which is loaded with LIBXML_NOXMLDECL doesn't avoid to get the xml declaration. It is a big problem to produce a xhtml document for internet because IE6 is not dead yet. Tested with libxml2 2.6.32 and 2.7.2 Reproduce code: --------------- <?php $xml = '<myxml/>'; $doc = new DOMDocument(); $doc->loadXml($xml, LIBXML_NOXMLDECL); echo $doc->saveXML(); Expected result: ---------------- <myxml/> Actual result: -------------- <?xml version="1.0"?> <myxml/> PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009年02月03日 14:45 UTC] rrichards@php.net
[2010年05月28日 03:45 UTC] jpatokal at iki dot fi
[2011年08月11日 10:31 UTC] suit at rebell dot at
[2013年09月23日 11:10 UTC] joscha at feth dot com
[2013年12月12日 15:38 UTC] avillalbacasas at gmail dot com
|
||||||||||||||||||||||||||||||||||||