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
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,3 @@
Got load event
[object HTMLDocument]
Failed to parse XML document: Expected '>' at offset 21