LibWebView: Include the document doctype in the exported Inspector HTML

(cherry picked from commit 2dbf846ff89a13ac3d141c72e8a89a3c6721d04b)
This commit is contained in:
Timothy Flynn 2024-08-20 11:02:46 -04:00 committed by Nico Weber
parent 7c6bb5bd77
commit d906e3c441

View file

@ -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);
};