File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
# CHANGELOG
2
2
3
+ * change the ` :html ` output to return ` document.documentElement.innerHTML ` instead of previously used ` document.body.innerHTML `
4
+
3
5
## 1.0.0
4
6
5
7
* initial version
Original file line number Diff line number Diff line change @@ -174,7 +174,7 @@ async function render(_opts = {}) {
174
174
}
175
175
data = await page . pdf ( opts . pdf ) ;
176
176
} else if ( opts . output === 'html' ) {
177
- data = await page . evaluate ( ( ) => document . body . innerHTML ) ;
177
+ data = await page . evaluate ( ( ) => document . documentElement . innerHTML ) ;
178
178
} else {
179
179
// This is done because puppeteer throws an error if fullPage and clip is used at the same
180
180
// time even though clip is just empty object {}
@@ -248,4 +248,3 @@ function logOpts(opts) {
248
248
module . exports = {
249
249
render,
250
250
} ;
251
-
You can’t perform that action at this time.
0 commit comments