ID: 32711 User updated by: phpspam at talkingspider dot com Reported By: phpspam at talkingspider dot com -Status: Bogus +Status: Open Bug Type: DOM XML related Operating System: Fedora C2 PHP Version: 4.3.9 New Comment:
Can you give me a link to a previous bug report explaining why this won't be fixed? (Obviously?) Previous Comments: ------------------------------------------------------------------------ [2005-04-17 04:25:05] [EMAIL PROTECTED] This has been covered in previous bug reports on why it wont be changed ------------------------------------------------------------------------ [2005-04-17 03:23:33] phpspam at talkingspider dot com No, they are NOT identical. It's called a canonical value. Think back to your computer science education. http://www.w3.org/TR/2001/REC-xml-c14n-20010315 The official spec for DOM does specify that CDATA nodes are labelled as such in the DOM. In other words, in the dom, CDATA nodes are CDATA nodes and text nodes are text nodes, they are not the same thing. So, for example, you should be able to crawl the dom and spot CDATA nodes. So, either one of two things are still broken: Either your parsing function is deciding to convert CDATA into text nodes, in which case, when the DOM is built, it never has CDATA nodes in it, even though they are present in the input xml. Or, your output function is deciding to convert all the CDATA nodes in the DOM into text nodes. In either case, that's a bug. In perl I can choose to preserve CDATA elements when I output. In PHP I can't. http://www.w3schools.com/dom/dom_cdatasection.asp ------------------------------------------------------------------------ [2005-04-16 02:21:16] [EMAIL PROTECTED] I don't understand. If you're saying that: <root><![CDATA[ Hello & Goodbye]></root> is turned into <root>Hello & Goodbye</root> Then this is not a bug. These are identical in XML and the processor can choose either representation. It's just like <root></root> vs. <root/>. You cannot control this and no XML parser should care when consuming them. ------------------------------------------------------------------------ [2005-04-16 01:43:55] [EMAIL PROTECTED] Try adding sample script which fails first.. ------------------------------------------------------------------------ [2005-04-16 01:10:56] phpspam at talkingspider dot com That is not a realistic response. You already have the latest php 4.x version installed somewhere, why should I have to install it on my side? You could do in 5 minutes what would take me 50. You also have access to all of the bugs that were ever fixed, search for this and if it's not there then it was never fixed. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/32711 -- Edit this bug report at http://bugs.php.net/?id=32711&edit=1
