Questions tagged [script-element]

This is a tag about the scripts that can be implemented inside the script element tag.

This is a tag about the scripts that can be implemented inside the script element tag.

<script language="some language">
   some script here
</scirpt>
7 questions
22
votes
1 answer

"The language attribute on the script element is obsolete. You can safely omit it."?

According to the W3C validator, I am getting this error: The language attribute on the script element is obsolete. You can safely omit it. …uage="JavaScript" src="js/gen_validatorv31.js" type="text/javascript"> How do I fix this? I…
Henrik Petterson
  • 6,862
  • 20
  • 71
  • 155
3
votes
0 answers

How to omit the type attribute in a script element?

Since a few month the W3C validator is complaining about, The type attribute is unnecessary for JavaScript resources. for HTML5 (example). Unfortunately JSF 2.2 always writes the attribute. Is it possible to modify this tag so it only works on Firefox?
Cain Nuke
  • 2,843
  • 5
  • 42
  • 65
1
vote
1 answer

jQuery append will download external src in script tags, but won't load into DOM

If I include a script with an external source and then try to parse using jQuery - it will download the script, but won't load it into the DOM. I'm using using .append(), but this seems to be the case for any other jQuery DOM insertion…
KyleMit
  • 30,350
  • 66
  • 462
  • 664
0
votes
1 answer

When the node where the class was defined was deleted and added again, an error of class duplicate declaration occurred

In the code above, after deleting the node with the remove() method, Again, the contents of the node were added to the body with the…
0
votes
1 answer

Force jQuery.getScript to use SCRIPT elements, never XHR

This old answer (circa. 2009) indicates that jQuery.getScript changes behavior depending on if the requested script resource / URL is domain-local or not1. While it does provide a work-about (and there is no shortage of examples to load JavaScript…
user2864740
  • 60,010
  • 15
  • 145
  • 220
-1
votes
2 answers

How to use nofollow link in script tag

This is my script code: I want to make crawler not to follow or index example.com/js/infolinks_main.js. How can I do this task? I have robots.txt in my root, but that…
Asif Iqbal
  • 1,132
  • 1
  • 10
  • 23