Bug 9873

Summary: Compressed SVG has "image/svg+xml" mime type which is text
Product: shared-mime-info Reporter: Yevgen Muntyan <muntyan>
Component: freedesktop.org.xmlAssignee: Jonathan Blandford <jrb>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium CC: bugzilla
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

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.