From 2dbf846ff89a13ac3d141c72e8a89a3c6721d04b Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Tue, 20 Aug 2024 11:02:46 -0400 Subject: [PATCH] LibWebView: Include the document doctype in the exported Inspector HTML --- Base/res/ladybird/inspector.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Base/res/ladybird/inspector.js b/Base/res/ladybird/inspector.js index 9a854c87d33..d35a75e993d 100644 --- a/Base/res/ladybird/inspector.js +++ b/Base/res/ladybird/inspector.js @@ -92,7 +92,7 @@ const scrollToElement = element => { }; inspector.exportInspector = () => { - const html = document.documentElement.outerHTML; + const html = `\n${document.documentElement.outerHTML}`; inspector.exportInspectorHTML(html); };