blob: da43099f71fb0b04c6a4989040de57f90c07550b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
<!doctype html>
<title><img> loading in destroyed document</title>
<iframe></iframe>
<script>
onload = function() {
const img = new Image();
img.onload = function() {
const iframe = document.querySelector('iframe');
iframe.contentDocument.createElement('div').innerHTML =
`<picture>
<source srcset="nonexistent.png">
<img src="data:image/gif;base64,R0lGODlhCgAKAIAAAP/MAAAAACH5BAAAAAAALAAAAAAKAAoAAAIIhI+py+0PYysAOw==">
</picture>`;
iframe.remove();
};
img.src = 'data:image/gif;base64,R0lGODlhCgAKAIAAAP/MAAAAACH5BAAAAAAALAAAAAAKAAoAAAIIhI+py+0PYysAOw==';
};
</script>
|