xhtml strict doctype and javascript

liunx

Guest
I recently decided to have my pages be valid with xhtml 1.0 strict. However, I get an error when i run a validator on it with javascript. Any help? <br />
<br />
Line 7, column 17: there is no attribute "LANGUAGE". <br />
<SCRIPT LANGUAGE="JavaScript" type="text/javascript"><br />
^<br />
Line 7, column 35: there is no attribute "type". <br />
<SCRIPT LANGUAGE="JavaScript" type="text/javascript"><br />
^<br />
Line 7, column 52: element "SCRIPT" undefined. <br />
<SCRIPT LANGUAGE="JavaScript" type="text/javascript"><br />
^<!--content-->This validates against XHTML 1.1.<br />
<br />
<script type="text/javascript"><!--content-->Hmm, weird, i take out the language="javascript" and lowercase the <SCRIPT and it validates, odd. What about things like onMouseOver and onMouseOut and onClick, i get errors for those too...<!--content-->Originally posted by thejoker101 <br />
Hmm, weird, i take out the language="javascript" and lowercase the <SCRIPT and it validates, odd. What about things like onMouseOver and onMouseOut and onClick, i get errors for those too... What on earth do you think that validation means? In XHTML all element and attribute names are case sensitive and lowercase. (And the event handlers always were all lower case. It's just that attribute names in HTML are case insensitive.) And try reading the DTD. There is no language attribute for the script element or for any other element.<!--content-->Tags in XHTML must be in lower case. For the other stuff, you have to post a link your code, post it, or upload a copy of your file.<!--content-->
 
Back
Top