Closed
Bug 65848
Opened 24 years ago
Closed 24 years ago
The "application/xhtml+xml" MIME Media Type
Categories
(Core :: XML, enhancement)
Core
XML
Tracking
()
VERIFIED
FIXED
mozilla0.9.1
People
(Reporter: dmh, Assigned: hjtoi-bugzilla)
References
()
Details
(Keywords: xhtml, Whiteboard: [fixinhand])
Attachments
(3 files)
437 bytes,
application/xml
|
Details | |
92.59 KB,
patch
|
Details | Diff | Splinter Review | |
92.67 KB,
patch
|
Details | Diff | Splinter Review |
From Bugzilla Helper:
User-Agent: Mozilla/4.7 [en] (Win95; I)
BuildID: 2001010901
Over HTTP, when Mozilla is served a file with the application/xhtml+xml media
type it gives an "Unknown File Type" error. Could it instead parse it as XML?
For more information see:
http://www.ietf.org/internet-drafts/draft-baker-xhtml-media-reg-00.txt
Reproducible: Always
Steps to Reproduce:
1. Set up a webserver with the "application/xhtml+xml" MIME Type registered for
".xhtml" and ".xht" file extensions
2. Place a valid XHTML file on the webserver, with a name like test.xhtml
3. Attempt to see this file in Mozilla
Actual Results: An "Unknown File Type" error message is displayed
Expected Results: Displayed the page, treating the file as an XML document
Comment 1•24 years ago
|
||
is this a standard or just a draft?
Reporter | ||
Comment 2•24 years ago
|
||
It's an IETF Internet-Draft.
Comment 3•24 years ago
|
||
Reporter do you have a testcase we can use?
Reporter | ||
Comment 4•24 years ago
|
||
Reporter | ||
Comment 5•24 years ago
|
||
Attachment is application/xml; Bugzilla wouldn't let me use
application/xhtml+xml.
Comment 6•24 years ago
|
||
reassigning.
Assignee: asa → heikki
Status: UNCONFIRMED → NEW
Component: Browser-General → XML
Ever confirmed: true
QA Contact: doronr → petersen
Comment 7•24 years ago
|
||
Setting URL to a test page I already had up for this.
The present IETF Internet-Draft is
http://www.ietf.org/internet-drafts/draft-baker-xhtml-media-reg-01.txt
While parameters like "schema-location" may still be up for debate, it seems a
foregone conclusion that "application/xhtml+xml" will indeed be the official
media type for XHTML.
Reporter | ||
Comment 8•24 years ago
|
||
An additional thought -- shouldn't Mozilla actually treat /all/ XML MIME
subtypes that it doesn't recognise as if they were application/xml? For
example, if I were to open a file with the (fictional) subtype
application/foobar+xml without a "foobar" plugin or helper app -- Mozilla could
parse it as XML rather than give the "Unknown File Type" error message.
BTW Robin I agree with your last comment -- and the W3C web site seems to refer
to it as application/xhtml+xml now rather than just the "XHTML media type".
Reporter | ||
Comment 9•24 years ago
|
||
I should also mention RFC 3023 (XML Media Types) --
http://www.ietf.org/rfc/rfc3023.txt -- which discusses the possibility of
content types like application/mathml+xml and image/svg+xml.
Comment 10•24 years ago
|
||
Do other browsers support this and other new MIME types?
Will try to fix this in M0.9.1 if it isn't too expensive.
Target Milestone: --- → mozilla0.9.1
Reporter | ||
Comment 11•24 years ago
|
||
Neither Opera 5.0 nor MSIE 5.X support "application/xhtml+xml"; Amaya is AFAIK
the only one.
Assignee | ||
Comment 12•24 years ago
|
||
I have a fix for this and applcation/xml mime type, but they both still exhibit
a bug with view source (you get a file download dialog instead of view source -
doh).
Status: NEW → ASSIGNED
Whiteboard: [fixinhand]
Assignee | ||
Comment 13•24 years ago
|
||
Assignee | ||
Comment 14•24 years ago
|
||
Comment 15•24 years ago
|
||
the mime type related stuff looks good to me, r=valeski. however I don't think
you need to add the type to nsContentDLF.cpp, do you?
Assignee | ||
Comment 16•24 years ago
|
||
nsContentDLF.cpp changes: Probably not, but since its is still there I'd rather
keep it in sync with nsLayoutDLF.cpp.
Assignee | ||
Comment 17•24 years ago
|
||
Comment 18•24 years ago
|
||
r=harishd for patchv1.1
Comment 19•24 years ago
|
||
sr=vidur. It's scary how many places needed to change to support the new mime
types. There are going to be more coming down the pipe in the next several
releases...
Assignee | ||
Comment 20•24 years ago
|
||
Fixed.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Comment 21•24 years ago
|
||
Marking verified in the May 03rd build. (2001050308)
Status: RESOLVED → VERIFIED
Comment 22•23 years ago
|
||
For historical reference, the "application/xhtml+xml" MIME type is not a draft any longer. The registration is published as RFC 3236.
You need to log in
before you can comment on or make changes to this bug.
Description
•