Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #22279, comment 5


Ignore:
Timestamp:
06/07/2016 06:15:40 PM (8 years ago)
Author:
screamingdev
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #22279, comment 5

    initial v1  
    1 Is this even a WordPress-Bug?
     1This 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.
    22
    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.
     3Scenarios to solve/evaluate:
    54
    6 How to handle that?
    7 How can I write a test on that?
    8 
    9 Cheers!
     51) Find out why/if simplexml eats little carriage returns.
     62) Do no longer use the PHP internals / modules such as DOMDocument and simplexml for importing.
     73) This is not a bug. Might be that the XML-Spec does not allow carriage returns.