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)
Tracking
()
People
(Reporter: bzbarsky, Assigned: harishd)
References
()
Details
Attachments
(1 file)
728 bytes,
patch
|
Details | Diff | Splinter Review |
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.
![]() |
Reporter | |
Comment 1•24 years ago
|
||
*** This bug has been marked as a duplicate of 77080 ***
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•