ladybird/Tests/LibWeb/Text/input/HTML/iframe-load-event-for-bad-xml.html
Andreas Kling e9abdc4ed0 Tests: Avoid racing iframe bad XML load test
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.
2026-05-22 15:48:00 +02:00

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>