Forum Moderators: open

Message Too Old, No Replies

Script language attribute has an invalid attribute

What does this mean?

         

jonw440

8:03 pm on Apr 22, 2006 (gmt 0)

10+ Year Member



I have searched almost everwhere and don't understand this error and cant find an answer or a fix.
Is it looking for a language like "english", "en"?
I have this code error after running CSE HTML validator.

encyclo

8:18 pm on Apr 22, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The error meggage you got is far from clear, but you probably have a
script
element which is missing the required
type
attribute, so the following is correct:

<script [b]type="text/javascript"[/b] src="file.js"></script>

and the this is NOT correct:

<script [i]language="Javascript"[/i] src="file.js"></script>

jonw440

8:45 pm on Apr 22, 2006 (gmt 0)

10+ Year Member



Sorry,I guess the actual code error would help.... :)
Here is the code error.
<head>
<script language="">
fixNS4onWin=(document.layers&&navigator.platform.toLowerCase().indexOf("win")!=-1)?'11px':'10px';
document.write("<style>.text{font:"+fixNS4onWin+" verdana,arial,sans-serif;color:#4A49A8}</style>")
</script>

[edited by: encyclo at 8:48 pm (utc) on April 22, 2006]
[edit reason] scrollism [/edit]

encyclo

8:49 pm on Apr 22, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You therefore need to change:

<script language="">

to:

<script [b]type="text/javascript"[/b]>

That should fix the error. :)

The precise explanation for the error is that the attribute value could not be empty as in your example.

jonw440

9:01 pm on Apr 22, 2006 (gmt 0)

10+ Year Member



That did it!
Thank You!