Create the iframe inside the test with its src already set. This avoids observing a parser-created iframe's initial load event when the test is only trying to check that malformed XML iframe navigation fires load.
13 lines
372 B
HTML
13 lines
372 B
HTML
<!DOCTYPE html>
|
|
<script src="../include.js"></script>
|
|
<script>
|
|
asyncTest((done) => {
|
|
const iframe = document.createElement("iframe");
|
|
iframe.onload = function() {
|
|
println("OK");
|
|
done();
|
|
}
|
|
iframe.src = "data:application/xml;charset=utf-8;base64,vwo=";
|
|
document.body.appendChild(iframe);
|
|
});
|
|
</script>
|