Skip to content

Commit 759e8a1

Browse files
committed
HTTP server return <html> instead of just <body>
1 parent 95562aa commit 759e8a1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

webext/src/dom/serialise_mixin.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,10 @@ export default MixinBase =>
291291
_sendRawText() {
292292
let body;
293293
if (this._raw_mode_type == "raw_text_dom") {
294-
body = document.getElementsByTagName("body")[0].innerHTML;
294+
body =
295+
"<html>" +
296+
document.getElementsByTagName("html")[0].innerHTML +
297+
"</html>";
295298
} else {
296299
body = this._serialiseRawText();
297300
}

0 commit comments

Comments
 (0)