Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
3.1.3
-
None
Description
Documents with CR entities don't seem to round trip properly in the parser if you parse them and then serialize them. It's possible the bug is in the serializer because signed documents don't end up with corrupt signatures, but that may be due to insufficient testing as of yet.
A simple example:
<?xml version="1.0" encoding="UTF-8"?> <foo> text more<& </foo>
Running that through DOMPrint or SAX2Print:
<foo> more<& </foo>
Notice the CR entity is removed, but also all of the characters immediately in front of it.