<!DOCTYPE html>
<img id=image srcset="resources/blue_rect.jpg" alt="We should see alt">
<script>
window.onload = function() {
var img = document.querySelector("#image");
img.removeAttribute("srcset");
}
</script>