W3C home > Mailing lists > Public > www-validator@w3.org > February 2003

Re: W3C Link Checker uses unregistered media type

From: Ville Skyttä <ville.skytta@iki.fi>
Date: 01 Feb 2003 12:57:55 +0200
To: Bjoern Hoehrmann <derhoermi@gmx.net>
Cc: Nicolas Roeser <n-roeser@gmx.net>, www-validator@w3.org
Message-Id: <1044097075.15535.63.camel@bobcat.ods.org>

On Fri, 2003-01-31 at 19:23, Bjoern Hoehrmann wrote:

> >the W3C Link Checker uses the media type "text/javascript" for scripts
> >when creating the HTTP message, see lines 712 and 720 in checklink.pl .
> >As this media type is not registered with IANA, the script should be
> >fixed to use "application/x-javascript" instead.

Yes, you're right.  However, changing that would cause MSIE, versions 6+
IIRC, not to execute the script (neat, huh?).  The script has no
critical role at all, not to mention we really shouldn't have bad
examples on v.w.o, so I'll change that.

> Which is neither registered?!

application/x-javascript is a common practice.  x-foo types are private
extensions, which are not registered.  Unfortunately, it's the best
option here currently.  One just can't invent a non-x-foo media type and
start to use it, they have to be registered by IANA.

-- 
\/ille Skyttä
ville.skytta at iki.fi
Received on Saturday, 1 February 2003 05:57:46 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:05 GMT