Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder Kevin_M_Schafer's Avatar
    Join Date
    Apr 2011
    Location
    Fairfax, Minnesota, U.S.A.
    Posts
    482
    Thanks
    97
    Thanked 17 Times in 17 Posts

    Obsolete script element -- validation issue

    I have a validation issue with a weatherbug for my site. I get the following error:

    "Line 16, Column 197: The language attribute on the script element is obsolete. Use the type attribute instead."

    Here is the script:
    <script language="javascript1.2" type="text/javascript" src="http://weatherreports.com/jscript.html?width=234&amp;height=60&amp;theme=white&amp;location=Fairfax%2C%20Minnesota%2055332&amp ;units=f"></script>

    Is anyone able to explain what the validation error is suggesting?

    Any help would be greatly appreciated. Thanks.

  • #2
    Senior Coder
    Join Date
    Apr 2011
    Location
    London, England
    Posts
    2,120
    Thanks
    15
    Thanked 354 Times in 353 Posts
    That is a very clear error message, and I can only repeat it: "the language attribute is obsolete, use the type attribute instead"

    Code:
    <script language="javascript1.2" type="text/javascript"
    "I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
    Validate your HTML and CSS

  • Users who have thanked AndrewGSW for this post:

    Kevin_M_Schafer (05-02-2011)

  • #3
    Regular Coder Kevin_M_Schafer's Avatar
    Join Date
    Apr 2011
    Location
    Fairfax, Minnesota, U.S.A.
    Posts
    482
    Thanks
    97
    Thanked 17 Times in 17 Posts
    I see, Andy. I wasn't deleting all of the previous attribute. I went all the way back, getting rid of the whole portion. Now it validates.

    Thank you!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •