mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 18:10:56 +09: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: 2dbf846ff8
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…
Add table
Add a link
Reference in a new issue