-
Jul 10th, 2014, 09:42 PM
#1
Thread Starter
PowerPoster
[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
-
Jul 11th, 2014, 07:11 AM
#2
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.
-
Jul 11th, 2014, 03:49 PM
#3
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?
ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·
-
Jul 11th, 2014, 04:17 PM
#4
Thread Starter
PowerPoster
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|