mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
LibWebView: Include the document doctype in the exported Inspector HTML
This commit is contained in:
parent
9f1517492c
commit
2dbf846ff8
Notes:
github-actions[bot]
2024-08-20 18:01:54 +00:00
Author: https://github.com/trflynn89 Commit: https://github.com/LadybirdBrowser/ladybird/commit/2dbf846ff89 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1142 Reviewed-by: https://github.com/gmta ✅
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ const scrollToElement = element => {
|
|||
};
|
||||
|
||||
inspector.exportInspector = () => {
|
||||
const html = document.documentElement.outerHTML;
|
||||
const html = `<!DOCTYPE ${document.doctype.name}>\n${document.documentElement.outerHTML}`;
|
||||
inspector.exportInspectorHTML(html);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue