Bug 9873 - Compressed SVG has "image/svg+xml" mime type which is text
Summary: Compressed SVG has "image/svg+xml" mime type which is text
Status: RESOLVED FIXED
Alias: None
Product: shared-mime-info
Classification: Unclassified
Component: freedesktop.org.xml (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Jonathan Blandford
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-04 08:20 UTC by Yevgen Muntyan
Modified: 2007-02-06 02:26 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Yevgen Muntyan 2007-02-04 08:20:20 UTC
*.svg and *.svgz files have "image/svg+xml" mime type, which is subclass of "application/xml", which is subclass of "text/plain", and this fools an innocent text editor which asks xdgmime whether given mime type is a subclass of text/plain to determine whether it's a text file.

There should be a separate mime type like image/svg-comperessed or something (which would be subclass of application/x-gzip?).

It may be that text/plain mime type is not intended to mean "text files", but then there is no way to deal with these svg files using xdgmime (and still be able to say that uncompressed svg is indeed a text file, xml).
Comment 1 Bastien Nocera 2007-02-06 01:58:34 UTC
2007-02-06  Bastien Nocera  <hadess@hadess.net>

        * freedesktop.org.xml.in: compressed SVG files aren't XML files,
        so .svgz files now use image/svg as their mime-type (Closes: #9873)
Comment 2 Bastien Nocera 2007-02-06 02:26:03 UTC
2007-02-06  Bastien Nocera  <hadess@hadess.net>

        * freedesktop.org.xml.in: Add a mime-type for XUL, add *.xbl as
        an XML pattern, as XBL doesn't have its own mime-type (Closes: #3260)
        Change the compressed SVG mime-type to image/svg+xml-compressed


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.