W3C home > Mailing lists > Public > www-validator@w3.org > August 2005

Type attribute in script elememt - content-type format

From: Bent Lynggård <bent.lynggaard@get2net.dk>
Date: Sat, 13 Aug 2005 20:44:03 +0200
To: <www-validator@w3.org>
Message-Id: <20050813184559.155F11EC307@pasmtp.tele.dk>

Your validator accepts <script type="javascript" ...> as a valid element.

Internet Explorer 6, Netscape 8, Firefox 1, and Opera 8 for Windows all
ignore such script element.

As I read http://www.ietf.org/rfc/rfc2045.txt page 10, the type attribute
must have a type/subtype format, i.e. text/javascript. Shouldn't the
validator mark type="javascript" as an error?

http://www.risoe.dk/pbk/test/ScriptTest.htm with two script elements and two
type attribute formats will be available for a limited time. The validator
checks the page valid.

Regards - Bent Lynggård.
Received on Sunday, 14 August 2005 03:35:38 GMT

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