diff --git a/src/drivers/webextension/js/content.js b/src/drivers/webextension/js/content.js index 49ecba12d..49c21f5e7 100644 --- a/src/drivers/webextension/js/content.js +++ b/src/drivers/webextension/js/content.js @@ -2,7 +2,7 @@ if ( typeof browser !== 'undefined' && typeof document.body !== 'undefined' ) { try { - var html = document.documentElement.outerHTML; + var html = new XMLSerializer().serializeToString(document); if ( html.length > 50000 ) { html = html.substring(0, 25000) + html.substring(html.length - 25000, html.length);