<html> | |
<head><title><a download> that refers to a nonexistent hostname</title></head> | |
<body> | |
<a id='download' href="http://doesnotexist/shouldnotberesolved" download='foo'>Download</a> | |
<script> | |
window.setTimeout(function() { | |
var evt = document.createEvent("MouseEvent"); | |
evt.initMouseEvent('click', true, true); | |
document.getElementById('download').dispatchEvent(evt); | |
}, 0); | |
</script> | |
</body> | |
</html> |