mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-29 04:39:10 +00: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:
parent
5a3efb8842
commit
5ef6df79ed
Notes:
sideshowbarker
2024-07-16 23:38:54 +09:00
Author: https://github.com/awesomekling
Commit: 5ef6df79ed
Pull-request: https://github.com/SerenityOS/serenity/pull/24023
4 changed files with 41 additions and 2 deletions
3
Tests/LibWeb/Text/expected/XML/error-page.txt
Normal file
3
Tests/LibWeb/Text/expected/XML/error-page.txt
Normal file
|
@ -0,0 +1,3 @@
|
|||
Got load event
|
||||
[object HTMLDocument]
|
||||
Failed to parse XML document: Expected '>' at offset 21
|
Loading…
Add table
Add a link
Reference in a new issue