"The language attribute on the script element is obsolete. You can safely omit it."?

Henrik Petterson picture Henrik Petterson · Apr 3, 2012 · Viewed 27.4k times · Source

According to the W3C validator, I am getting this error:

The language attribute on the script element is obsolete. You can safely omit it.

…uage="JavaScript" src="js/gen_validatorv31.js" type="text/javascript"></script>

How do I fix this?

I checked through the script and it should not be an issue.

Answer

Brandon picture Brandon · Apr 3, 2012
<script type="text/javascript" src="js/gen_validatorv31.js"
     language="JavaScript"></script>

You don't need to include redundant language="JavaScript". Specifying just the type and src is valid, language is obsolete, remove it.