docs(api.md): mention header/footer template limitations in page.pdf. (#2341)

References #2167.
This commit is contained in:
Andrey Lushnikov 2018-04-09 22:30:20 -07:00 committed by GitHub
parent c5902de5d8
commit 2b95774af9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1117,6 +1117,10 @@ The `format` options are:
- `A5`: 5.83in x 8.27in
- `A6`: 4.13in x 5.83in
> **NOTE** `headerTemplate` and `footerTemplate` markup have the following limitations:
> 1. Script tags inside templates are not evaluated.
> 2. Page styles are not visible inside templates.
#### page.queryObjects(prototypeHandle)
- `prototypeHandle` <[JSHandle]> A handle to the object prototype.
- returns: <[Promise]<[JSHandle]>> Promise which resolves to a handle to an array of objects with this prototype.