File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 11# CHANGELOG
22
3+ * change the ` :html ` output to return ` document.documentElement.innerHTML ` instead of previously used ` document.body.innerHTML `
4+
35## 1.0.0
46
57* initial version
Original file line number Diff line number Diff line change @@ -174,7 +174,7 @@ async function render(_opts = {}) {
174174 }
175175 data = await page . pdf ( opts . pdf ) ;
176176 } else if ( opts . output === 'html' ) {
177- data = await page . evaluate ( ( ) => document . body . innerHTML ) ;
177+ data = await page . evaluate ( ( ) => document . documentElement . innerHTML ) ;
178178 } else {
179179 // This is done because puppeteer throws an error if fullPage and clip is used at the same
180180 // time even though clip is just empty object {}
@@ -248,4 +248,3 @@ function logOpts(opts) {
248248module . exports = {
249249 render,
250250} ;
251-
You can’t perform that action at this time.
0 commit comments