The answer is No. When the browser parses a text generated by the PHP code: "X".chr(13).chr(10)."Y", chr(13).chr(10) will be converted to a single character, "\n" So when you read it by Node.nodeValue, you will get "X", "\n", "Y"
See console.log...