Results 1 to 4 of 4

Thread: [RESOLVED] Validate warning on java script

  1. #1

    Thread Starter
    PowerPoster isnoend07's Avatar
    Join Date
    Feb 2007
    Posts
    3,237

    Resolved [RESOLVED] Validate warning on java script

    Been getting this warning by the w3 validator for some time and have been ignoring it:

    The language attribute on the script element is obsolete. You can safely omit it.
    <script language="javascript">
    i think this means i can write like this:
    <script>
    is this true ?
    Waiting for a full featured smart phone with out marrying a provider
    Go Android
    Go raiders

  2. #2
    PowerPoster kfcSmitty's Avatar
    Join Date
    May 2005
    Posts
    2,248

    Re: Validate warning on java script

    Yup, you can safely omit it.

    If you go to sites like Google's Hosted Libraries, you'll notice they omit them in the snippets they give you.

    I believe it has actually been deprecated since XHTML 1.0.

  3. #3
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,597

    Re: [RESOLVED] Validate warning on java script

    I have a habit to use the whole + type="text/javascript" and that is because VS will issue a warning will i do not do that, that messes with my other warnings and loose me time on debug.
    I am not sure if you used a vbscript tho, will it pass the validation?
    ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
    πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·

  4. #4

    Thread Starter
    PowerPoster isnoend07's Avatar
    Join Date
    Feb 2007
    Posts
    3,237

    Re: [RESOLVED] Validate warning on java script

    yes it passes validation just gives warnings
    saying obsolete, you can safely omit it
    Waiting for a full featured smart phone with out marrying a provider
    Go Android
    Go raiders

Posting Permissions

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



Click Here to Expand Forum to Full Width