Closed Bug 77499 Opened 24 years ago Closed 24 years ago

text/css files shown using the viewsource parser

Categories

(Core :: DOM: HTML Parser, defect)

x86
Linux
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 77080

People

(Reporter: bzbarsky, Assigned: harishd)

References

()

Details

Attachments

(1 file)

The basic problem is the following. When we call CanParse on something that has content-type text/css, there is no DTD that returns ePrimaryDetect and the only one that returns eValidDetect is nsViewSourceHTML. So we end up using viewsource to display the CSS file. Unfortunately, this is breaking the patch in bug 76567 to load a stylesheet inside viewsource using a <link> element. And there is really no reason to use the viewsource parser for this. We should just be doing the same thing as we do for text/plain. To test, one can load the URL provided in document inspector and see whether the DOM contains the classes and so on that nsViewSourceHTML sets.
reviews?
Blocks: 76567
*** This bug has been marked as a duplicate of 77080 ***
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
verified.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: