Open
Bug 286267
Opened 20 years ago
Updated 3 years ago
All kinds of MIME-Types for XSLT Stylesheets accepted
Categories
(Core :: XSLT, defect)
Core
XSLT
Tracking
()
NEW
People
(Reporter: mcsmurf, Unassigned)
References
()
Details
See URL for a testcase. It sends MIME-Type text/blabla for the XSLT Stylesheet
and Mozilla accepts this. Mozilla should throw a error, only text/xml and
application/xml should be accepted.
What version of moz are you using. This behaves as expected for me on FF 1.0.1
Reporter | ||
Comment 2•20 years ago
|
||
(In reply to comment #1)
> What version of moz are you using. This behaves as expected for me on FF 1.0.1
Trunk of course :), you should also test against this, since FF 1.0.1 is
out-of-date in coding terms.
Updated•20 years ago
|
Status: NEW → ASSIGNED
Updated•20 years ago
|
Summary: All kind of MIME-Types for XSLT Stylesheets accepted → All kinds of MIME-Types for XSLT Stylesheets accepted
![]() |
||
Comment 3•20 years ago
|
||
As discussed with peterv, nsParser used to have a hardcoded list of MIME types
and throw if passed something that wasn't on the list.
This was pretty hard to work with, so now it will assume everything is XML
unless stated otherwise in the MIME type (because so many MIME types map to
XML). This is not an issue for random pages, because nsContentDLF will only
pass types we know how to handle to the parser.
So the XSLT code probably needs to have a type check before just dumping the
data into the parser... (note that before the parser change, you could still
have, eg, XSLT stylesheets with the SVG MIME type and they would happily work,
so this isn't even a regression, in general -- it's just never worked right).
Updated•19 years ago
|
Assignee: peterv → xslt
Status: ASSIGNED → NEW
Updated•16 years ago
|
Assignee: xslt → nobody
QA Contact: keith → xslt
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•