W3C home > Mailing lists > Public > www-html@w3.org > November 2006

Re: HTML 4.01: Char encoding defaults for external scripts?

From: James Justin Harrell <herorev@yahoo.com>
Date: Sun, 5 Nov 2006 21:46:13 -0800 (PST)
Message-ID: <20061106054613.2579.qmail@web50103.mail.yahoo.com>
To: www-html@w3.org

> 
> 3. The document also contains a "script" element
> having
>     type="text/javascript" and src="ext.js", but no
>     "charset" attribute.
> 

The HTML 4.01 specification claims that the value of
the script element's type attribute should specify a
content type, and that a content type is a MIME type.

It references RFC2046
(http://tools.ietf.org/html/rfc2046) which specifies
that text media types (text/***) should be treated as
US-ASCII by default.

However, if the value of the type attribute should
really be treated as a MIME type, it's strange that
the script element has a charset attribute since MIME
types can also specify a character encoding.

example:
  text/javascript; charset=iso-8859-1



 
____________________________________________________________________________________
Sponsored Link

Degrees online in as fast as 1 Yr - MBA, Bachelor's, Master's, Associate
Click now to apply http://yahoo.degrees.info
Received on Monday, 6 November 2006 05:46:31 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:16:08 GMT