<!DOCTYPE html>
<html>
<head>
<title>Subresource Integrity should not be enforced on img tags</title>
</head>
<body>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
setup({single_test: true});
var img = document.createElement("img");
img.integrity = "sha256-deadbeef";
img.src = "/resources/square20.jpg";
img.onload = function() {
done();
}
img.onerror = function() {
assert_unreached("<img> tag was blocked");
}
document.body.appendChild(img);
</script>
</body>
</html>