Przeglądaj źródła

LibWebView: Include the document doctype in the exported Inspector HTML

Timothy Flynn 11 miesięcy temu
rodzic
commit
2dbf846ff8
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      Base/res/ladybird/inspector.js

+ 1 - 1
Base/res/ladybird/inspector.js

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