This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 336 - Warn on misused mime-type
Summary: Warn on misused mime-type
Status: RESOLVED FIXED
Alias: None
Product: Validator
Classification: Unclassified
Component: check (show other bugs)
Version: 0.7.0
Hardware: Other other
: P2 enhancement
Target Milestone: 0.8.0
Assignee: Olivier Thereaux
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
: 61 (view as bug list)
Depends on: 739
Blocks: 65
  Show dependency treegraph
 
Reported: 2003-09-07 20:47 UTC by Jim Ley
Modified: 2007-04-02 07:24 UTC (History)
1 user (show)

See Also:


Attachments

Description Jim Ley 2003-09-07 20:47:26 UTC
Aswell as checking the charset of the content, it would be useful if the 
content type of the document was also checked to ensure that the mime-type was 
appropriate, and even recommended, e.g. SVG is served as image/svg+xml (or 
other appropriate mime type) over application/octetstream or even 
application/xhtml, and XHTML 1.1 isn't served as text/html.  It would also be 
good of some parts of Appendix C. could be checked for XHTML 1.0 as text/html, 
and a low key warning would also be good here suggesting application/xhtml+xml.

SVG is very commonly got wrong, and is actually one of the most frequently 
asked questioned in the SVG world, similar confusion abounds in the XHTML world.
Comment 1 Terje Bless 2004-05-16 05:49:16 UTC
There's features planned along this line for either 0.7 or the following version.
Comment 2 Terje Bless 2004-05-16 06:47:52 UTC
*** Bug 61 has been marked as a duplicate of this bug. ***
Comment 3 Terje Bless 2004-10-12 19:26:31 UTC
Won't make it for 0.7.0.
Comment 4 Olivier Thereaux 2007-04-02 07:24:26 UTC
Done, see:
http://qa-dev.w3.org/wmvs/HEAD/dev/tests/#wrong_mime