Re: W3C Link Checker uses unregistered media type

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 UTC