mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 21:12:08 +02:00
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:
Notes:
sideshowbarker
2024-07-16 23:38:54 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/5ef6df79ed Pull-request: https://github.com/SerenityOS/serenity/pull/24023
13
Tests/LibWeb/Text/input/XML/error-page.html
Normal file
13
Tests/LibWeb/Text/input/XML/error-page.html
Normal 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>
|
||||
Reference in New Issue
Block a user