[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: MIME Type for SVG images in SVN config

From: Jan Hendrik <list.jan.hendrik_at_gmail.com>
Date: Tue, 24 Jun 2008 11:43:02 +0200

Concerning Re: MIME Type for SVG images in SVN
Ryan Schmidt wrote on 24 Jun 2008, 1:31, at least in part:

> On Jun 23, 2008, at 07:50, John Aldridge wrote:

[text is snipped]

> > application/javascript
> >
> > is the preferred type for a .js file (and that text/javascript is
> > obsolete). So in a subversion repository containing javascript
> > source code, where care had been taken to tag that code with its
> > proper MIME type, diffing & merging would be disabled from working
> > on it!
>
> "Preferred" seems to be in the eye of the beholder to me. For
> example, if the user is wanting to view a web site, then they do not
> want to see JavaScript (or CSS or HTML) source code and an
> application/ prefix would fit. However, if the user is a web site
> developer, then they very well might want to see JavaScript (or CSS
> or HTML) source code and a text/ prefix would seem more appropriate.

Had this issue with Python and Perl as well. For the sake of SVN I
left it at text/javascript while for the others there seemed to be a
consent to make it text/x-perl[python]. The whole system is quite
inconsistent, however, and indeed supporting Kevin's idea of an
SVN-specific property indicating how a file should be handled: as
mergable text or unmergable binary, independent of MIME type.

It gets even worse with XHTML. Officially it should be served as
application/xhtml+xml, but then browsers won't play fine, so it is
served/declared as text/xhtml+xml - and browsers go into quirks
mode, and if it is not absolutely necessary for some bell or whistle
people would be much better off going plain HTML Strict. (But this
is getting off-topic.)

Jan Hendrik
---------------------------------------
Freedom quote:

     ... the question becomes,
     are you going to have everyone play by the same rules,
     or are you going to try to rectify the shortcomings,
     errors and failures of the entire cosmos?
     Because those things are wholly incompatible.
     If you're going to have people play by the same rules,
     that can be enforced with a minimum amount
     of interference with people's freedom.
     But if you're going to try to make the entire cosmos right and just,
     somebody has got to have an awful lot of power
     to impose what they think is right on an awful lot of other people.
     What we've seen, particularly in the 20th century,
     is that putting that much power in anyone's hands is enormously dangerous.
               -- Thomas Sowell, 1999

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-06-24 11:43:04 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.