I want to parse HTML.
I don't want to load images.
And yet Chrome throws net::ERR_FILE_NOT_FOUND
See StackOverflow question: http://stackoverflow.com/questions/32653124/when-jquery-parsing-html-chrome-throwing-neterr-file-not-found
I want to parse HTML.
I don't want to load images.
And yet Chrome throws net::ERR_FILE_NOT_FOUND
See StackOverflow question: http://stackoverflow.com/questions/32653124/when-jquery-parsing-html-chrome-throwing-neterr-file-not-found
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8" /> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js" type="text/javascript"></script> | |
</head> | |
<body> | |
<script> | |
window.onerror = function(e) { | |
// an attempt to supress errors | |
}; | |
var some_HTML_string = "<img src='non-existent.jpg'>"; | |
$.parseHTML(some_HTML_string) | |
$(some_HTML_string) // another attempt | |
</script> | |
</body> | |
</html> |