Closed
Bug 19923
Opened 25 years ago
Closed 25 years ago
view-source handles CDATA sections badly
Categories
(Core :: DOM: HTML Parser, defect, P3)
Tracking
()
CLOSED
FIXED
M14
People
(Reporter: dbaron, Assigned: rickg)
References
()
Details
Attachments
(1 file)
214 bytes,
text/xml
|
Details |
DESCRIPTION: View-source is using the first ">" within a CDATA section to end
the coloring for the CDATA section. This is incorrect.
This is spun off from bug 17594. I'll try to attach a testcase later.
DOES NOT WORK CORRECTLY ON:
* Linux, mozilla, 1999-11-22-08-M12
Reporter | ||
Comment 1•25 years ago
|
||
Reporter | ||
Comment 2•25 years ago
|
||
IMO, it would be nice if DOCTYPEs and CDATA sections were not given the same
color as comments, since they actually have meaning...
Ok -- this is an easy kill. The question is: what color should CData be?
mauve :)
or, well, i'm not sure. since cdata by definition is literal text, it should be
something close to black (since regular text is black). maybe a dark violet or
something?
by the way, should this be hardcoded, or could it reside in a css file
somewhere?
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Fixed by improving cdata parsing, and I also added a new cdata style to css for
better viewing in css.
Comment hidden (collapsed) |
You need to log in
before you can comment on or make changes to this bug.
Description
•