Javascript & Strict Compliancy

Discussion in 'HTML & Website Design' started by safe_reader, Aug 2, 2006.

  1. #1
    Hello. I've been recently trying to update all my web pages to strict, so they can be 100% compliant with next-generation browsers. My question is, is it possible to still use javascript in the future? I ask this, because I have js on many pages, but the html validators do not like to see it. Example::

    Error Line 15 column 17: there is no attribute "LANGUAGE".
    <script language="JavaScript" type="text/JavaScript">


    Since there is not even an attribute 'Language', how the hell are we supposed to use JS yet keep things compliant?
     
    safe_reader, Aug 2, 2006 IP
  2. AdamSee

    AdamSee Well-Known Member

    Messages:
    422
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    135
    #2
    Of course, javascript will be around for a long time yet.

    
    <script type="text/JavaScript">
    
    Code (markup):
    The use of the language attribute is deprecated in XHTML.
     
    AdamSee, Aug 2, 2006 IP
  3. Gordaen

    Gordaen Peon

    Messages:
    277
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #3
    The above info is correct. The language tag is deprecated, since it's pretty redundant with the type tag. By default, script tags are javascript, but that could theoretically change in the future, which is why the type attribute is included.
     
    Gordaen, Aug 2, 2006 IP