|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-04-29 13:58 UTC] robin dot mehner at freak-company dot com
[2009-04-29 14:33 UTC] rrichards@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 25 03:00:02 2025 UTC |
Description: ------------ DomDocument interpolates the ' and " entities to their values (' and "). Other entities like > etc. are displayed as is. Tested with php version 5.2.6 (self-compiled under debian), 5.2.9 and 5.3RC1 on MacOSX. Further version infos can be posted if needed. Reproduce code: --------------- <?php // create document (keep it simple) $domImp = new DomImplementation(); $dom = $domImp->createDocument(null, 'root'); // create element $foo = $dom->createElement('foo', '' "'); // bug here $dom->documentElement->appendChild($foo); echo $dom->saveXML(); Expected result: ---------------- <?xml version="1.0"?> <root><foo>' "</foo></root> Actual result: -------------- <?xml version="1.0"?> <root><foo>' "</foo></root>