W3C home > Mailing lists > Public > www-validator@w3.org > May 2006

Re: there is no attribute "LANGUAGE".

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Fri, 5 May 2006 22:13:30 +0300 (EEST)
To: Monica <monicartusi@hotmail.com>
cc: www-validator@w3.org
Message-ID: <Pine.GSO.4.64.0605052205460.13544@korppi.cs.tut.fi>

On Tue, 2 May 2006, Monica wrote:

> <input id="Cb_res" type="checkbox" name="Cb_res" 
> onclick="__doPostBack('Cb_res','')" language="javascript" />
> e mi viene restituito questo errore there is no attribute "LANGUAGE".

As you can see from an HTML reference, and ultimately in the DTD, no 
"LANGUAGE" attribute is allowed in an <input> element. For a quick 
reference to attributes in HTML, consult

The scripting language used can be declared using a "LANGUAGE" attribute, 
but only in a <script> element. In theory, the language of scripts 
embedded in event attributes like onclick="..." can be declared using the 
HTTP header Content-Script-Type, see
In practice, browsers that support scripting will expect script code to be 
in some version of JavaScript anyway.

Thus, you can simply remove the attribute.

Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/
Received on Friday, 5 May 2006 19:13:46 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:48 UTC