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 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:58:52 UTC