docs: clarify setContent semantics (#24553)

Fixes https://github.com/microsoft/playwright/issues/24503
This commit is contained in:
Yury Semikhatsky 2023-08-01 11:45:58 -07:00 committed by GitHub
parent 9d5d2c60bb
commit ce341ae5b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 0 deletions

View file

@ -1610,6 +1610,8 @@ When all steps combined have not finished during the specified [`option: timeout
## async method: Frame.setContent ## async method: Frame.setContent
* since: v1.8 * since: v1.8
This method internally calls [document.write()](https://developer.mozilla.org/en-US/docs/Web/API/Document/write), inheriting all its specific characteristics and behaviors.
### param: Frame.setContent.html ### param: Frame.setContent.html
* since: v1.8 * since: v1.8
- `html` <[string]> - `html` <[string]>

View file

@ -3531,6 +3531,8 @@ When all steps combined have not finished during the specified [`option: timeout
## async method: Page.setContent ## async method: Page.setContent
* since: v1.8 * since: v1.8
This method internally calls [document.write()](https://developer.mozilla.org/en-US/docs/Web/API/Document/write), inheriting all its specific characteristics and behaviors.
### param: Page.setContent.html ### param: Page.setContent.html
* since: v1.8 * since: v1.8
- `html` <[string]> - `html` <[string]>

View file

@ -3815,6 +3815,8 @@ export interface Page {
}): Promise<void>; }): Promise<void>;
/** /**
* This method internally calls [document.write()](https://developer.mozilla.org/en-US/docs/Web/API/Document/write),
* inheriting all its specific characteristics and behaviors.
* @param html HTML markup to assign to the page. * @param html HTML markup to assign to the page.
* @param options * @param options
*/ */
@ -6900,6 +6902,8 @@ export interface Frame {
}): Promise<void>; }): Promise<void>;
/** /**
* This method internally calls [document.write()](https://developer.mozilla.org/en-US/docs/Web/API/Document/write),
* inheriting all its specific characteristics and behaviors.
* @param html HTML markup to assign to the page. * @param html HTML markup to assign to the page.
* @param options * @param options
*/ */