mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-13 18:37:37 +02:00
This matches the behavior of other browsers. (cherry picked from commit e1eeb93cc6095a47371d23db0bbf55eb30215cee)
16 lines
419 B
HTML
16 lines
419 B
HTML
<!DOCTYPE html>
|
|
<script src="../include.js"></script>
|
|
<script>
|
|
asyncTest(done => {
|
|
const iframe = document.createElement('iframe');
|
|
document.body.appendChild(iframe);
|
|
iframe.contentDocument.open();
|
|
iframe.onload = () => {
|
|
println("Onload event fired");
|
|
iframe.remove();
|
|
done();
|
|
};
|
|
iframe.contentDocument.close();
|
|
});
|
|
</script>
|