Changes between Initial Version and Version 1 of Ticket #22279, comment 5
- Timestamp:
- 06/07/2016 06:15:40 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #22279, comment 5
initial v1 1 Is this even a WordPress-Bug? 1 This seems to be a problem with DOMDocument. It parses the XML and seems to add an "\n" to every "\r" while the `simplexml_import_dom()` eats all the "\r". So "\n" remains. 2 2 3 I wanted to solve it, started with the test and the test needs to install the import plugin. 4 As WordPress generates the WXR with the carriage return it is rather a WordPress Importer bug. 3 Scenarios to solve/evaluate: 5 4 6 How to handle that? 7 How can I write a test on that? 8 9 Cheers! 5 1) Find out why/if simplexml eats little carriage returns. 6 2) Do no longer use the PHP internals / modules such as DOMDocument and simplexml for importing. 7 3) This is not a bug. Might be that the XML-Spec does not allow carriage returns.