Closed
Bug 306605
Opened 19 years ago
Closed 19 years ago
XMLSerializer.serializeToString skips CDATA sections
Categories
(Core :: XML, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 255553
People
(Reporter: sgala, Unassigned)
Details
User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.7.10) Gecko/20050809 Firefox/1.0.6 Build Identifier: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.7.10) Gecko/20050809 Firefox/1.0.6 Trying to use OpenRico support for Ajax, I found that (as expected), non well-formed content is not correctly parsed. When I tried to enclose the non well-formed fragments in CDATA sections, expecting to be able to render them, either directly or with some javascript magics, I found that they are completely skipped by the serializeToString method. In fact, an xmlSerializer.serializeToString(parentNode.childNodes[i]) of the document shows <![CDATA]]> instead of the content, or the content with the CDATA section. Reproducible: Always Steps to Reproduce: 1. Use a simple OpenRico demo which returns a CDATA fragment inside 2. look at the browser view of the document Actual Results: serializeToString returns <!CDATA]]> Expected Results: either keep the <![CDATA<bad text here>]]>, or, probably, insert the CDATA in the serialized string. Not sure about correct behaviour here.
Comment 1•19 years ago
|
||
*** This bug has been marked as a duplicate of 255553 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•