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

> 
> 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 UTC