Closed
Bug 300593
Opened 19 years ago
Closed 19 years ago
XML CDATA new lines not viewed correctly
Categories
(Core :: XML, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 226786
People
(Reporter: hosamaly6, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b3) Gecko/20050711 Firefox/1.0+
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b3) Gecko/20050711 Firefox/1.0+
The following XML file should be displayed as-is (the new lines should be
displayed). It is viewed correctly in IE 6, but not in Firefox.
<?xml version="1.0" encoding="utf-8"?>
<root>
<![CDATA[Diagram:
frobmorten <--------------- fuznaten
| <3> ^
| <1> | <1> = fozzle
V | <2> = framboze
staten-------------------------+ <3> = frenzle
<2>
]]>
</root>
Reproducible: Always
Steps to Reproduce:
1. Make an XML file like the one provided in the "Details" section.
2. View it in Firefox.
Actual Results:
The new lines are not displayed.
Expected Results:
Look at the file in IE6.
Comment 1•19 years ago
|
||
Check to make sure that your web server is sending the xml file as application/xhtml+xml or application/xml.
There is no server here. I'm opening it from a file on my local machine.
Comment 3•19 years ago
|
||
It should be displayed using the pretty xml tree thing that shows the dom structure. Do you mean you want the whitespace to be preserved in that? If you don't mean that, then this bug is invalid since the default whitespace handling is inherit/normal not pre.
Yes, that's what I mean. The whitespaces (including the newline) in a CDATA section should be preserved (as indicated by the XML specifications).
Updated•19 years ago
|
Assignee: nobody → xml
Component: General → XML
Product: Firefox → Core
QA Contact: general → ashshbhatt
Version: unspecified → Trunk
Comment 5•19 years ago
|
||
*** This bug has been marked as a duplicate of 226786 ***
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
•