W3C home > Mailing lists > Public > public-html@w3.org > May 2008

Please clarify that type=text/javascript is optional

From: Henri Sivonen <hsivonen@iki.fi>
Date: Thu, 22 May 2008 14:48:19 +0300
Message-Id: <FE46A6F2-80D1-4B40-8C75-029CB1D6C35F@iki.fi>
To: HTML Working Group <public-html@w3.org>

> When used to include dynamic scripts, the scripts may either be  
> embedded inline or may be imported from an external file using the  
> src attribute. If the language is not that described by "text/ 
> javascript", then the type of the script's language must be given  
> using the type attribute.
> When used to include script data, the script data must be embedded  
> inline, the format of the data must be given using the type  
> attribute, and the src attribute must not be specified.

It isn't quite clear if type=text/javascript is optional as far as  
conformance goes. (It should be optional.)

Henri Sivonen
Received on Thursday, 22 May 2008 11:49:01 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 9 October 2021 18:44:31 UTC