Re: there is no attribute "LANGUAGE".

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
http://www.w3.org/TR/REC-html40/index/attributes.html

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
http://www.w3.org/TR/REC-html40/interact/scripts.html#h-18.2.2
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