Closed Bug 19923 Opened 25 years ago Closed 25 years ago

view-source handles CDATA sections badly

Categories

(Core :: DOM: HTML Parser, defect, P3)

x86
Linux
defect

Tracking

()

CLOSED FIXED

People

(Reporter: dbaron, Assigned: rickg)

References

()

Details

Attachments

(1 file)

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
IMO, it would be nice if DOCTYPEs and CDATA sections were not given the same color as comments, since they actually have meaning...
Status: NEW → ASSIGNED
Target Milestone: M13
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.
updated qa contact.
QA Contact: janc → bsharma
QA Contact: bsharma → moied
Verfied with buidID 20020214 on win2k
Status: RESOLVED → CLOSED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: