Closed
Bug 356739
Opened 19 years ago
Closed 19 years ago
Atom CDATA handling wrong
Categories
(Firefox Graveyard :: RSS Discovery and Preview, defect)
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: gsnedders, Unassigned)
Details
Attachments
(1 file)
|
130 bytes,
application/atom+xml
|
Details |
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/418.9 (KHTML, like Gecko) Safari/419.3
Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-GB; rv:1.8.1) Gecko/20061003 Firefox/2.0
When you have something like "<![CDATA[&]]>amp;" (I'll attach a test case for this bug with more than just that), Firefox display "&", when surely because of the CDATA section it should be displaying "&amp;".
Reproducible: Always
Steps to Reproduce:
1. Open a feed with such an CDATA section
2. View.
Actual Results:
Firefox displays "&"
Expected Results:
Firefox should display "&amp"
| Reporter | ||
Comment 1•19 years ago
|
||
I hope this is alright as a test case…
Comment 2•19 years ago
|
||
<title type="html"> translates as "what your XML parser outputs is HTML source, ready to be passed off to an HTML parser just as it is." If you have a web page that includes what the XML parser emits, "&amp;", then the display will be just the "&" we display for that feed title. On the other hand, if you change to <title type="text">, saying "what your XML parser outputs is plain text, which must be suitably escaped if you hand it to an HTML parser," then we do display "&amp;" as we then should.
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → INVALID
| Reporter | ||
Comment 3•19 years ago
|
||
Duh. I go away from dealing with XML for a couple of months and come back thinking that what's in a CDATA section is what's meant to be displayed to the user, not that it's nothing more complex than just not decoding entities within the XML parser (within the CDATA section).
Updated•7 years ago
|
Product: Firefox → Firefox Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•