function foo() { return "noopener noreferrer"; }
var o = { rel: "noopener noreferrer "};
// OK
Example;
Example;
Example;
Example;
Example;
Example;
// OK, because of constant URL
Example;
Example;
Example;
// NOT OK, because of dynamic URL
Example;
Example;
Example;
function f() {
// OK
var a1 = $("", { href: "http://example.com" });
a1.attr("target", "_blank");
// OK
var a2 = $("", { href: "http://example.com" });
a2.attr("target", "_blank");
a2.attr(computedName(), "noopener");
// NOT OK
var a3 = $("", { href: "{{X}}" });
a3.attr("target", "_blank");
// OK
var a4 = $("");
a4[f()] = g();
a4.attr("target", "_blank");
// NOT OK
var a5 = $("");
a5.attr("href", g());
a5.attr("target", "_blank");
}
// OK, because of dynamic URL with fixed host
Example;
Example;
Example;
Example;
Example;
Example;
// OK, because of dynamic URL with relative path
Example;
Example;
Example;
Example;
Example;
// OK, Flask application with internal links
Example;
Example;
Example;
// OK, nunjucks template
Example