blob: 0f916d0102da72d72626776a638030701a7a9522 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<script>
var anch = document.createElement("a");
anch.href = "http://localhost:8000/security/resources/referrer-attr-anchor-target.html#no-policy";
document.body.appendChild(anch);
var img = document.createElement("img");
img.src = "http://localhost:8000/security/resources/compass.jpg";
document.body.appendChild(img);
test(function () {
assert_equals(anch.referrerpolicy, "");
assert_equals(img.referrerpolicy, "");
}, "Dynamically created elements have empty referrerpolicy");
anch.click();
</script>
</body>
</html>