LibWeb: Generate a simple error page when XML decode/parse fails

This fixes a regression on Acid3, since we are not expected to "best
effort" parse XML. The test specifically checks that you don't create an
incomplete, incorrect DOM.
This commit is contained in:
Andreas Kling
2024-04-19 10:47:57 +02:00
parent 5a3efb8842
commit 5ef6df79ed
Notes: sideshowbarker 2024-07-16 23:38:54 +09:00
4 changed files with 41 additions and 2 deletions

View File

@@ -0,0 +1,13 @@
<script src="../include.js"></script>
<iframe id="i1"></iframe>
<script>
asyncTest((done) => {
i1.src = '../../data/bad.xml';
i1.onload = function() {
println("Got load event");
println(i1.contentDocument);
println(i1.contentDocument.documentElement.innerText);
done();
}
});
</script>