diff --git a/docs/src/api/class-elementhandle.md b/docs/src/api/class-elementhandle.md index 059d6a673a424..456746e358e49 100644 --- a/docs/src/api/class-elementhandle.md +++ b/docs/src/api/class-elementhandle.md @@ -437,7 +437,7 @@ Defaults to `false`. This method waits for [actionability](./actionability.md) checks, then tries to scroll element into view, unless it is completely visible as defined by -[IntersectionObserver](https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API)'s ```ratio```. +[IntersectionObserver](https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API)'s `ratio`. Throws when `elementHandle` does not point to an element [connected](https://developer.mozilla.org/en-US/docs/Web/API/Node/isConnected) to a Document or a ShadowRoot. diff --git a/types/types.d.ts b/types/types.d.ts index fa7904d84eeb2..c3adc52d271c8 100644 --- a/types/types.d.ts +++ b/types/types.d.ts @@ -6009,7 +6009,7 @@ export interface ElementHandle extends JSHandle { /** * This method waits for [actionability](https://github.com/microsoft/playwright/blob/master/docs/actionability.md) checks, then tries to scroll element into view, unless it is * completely visible as defined by - * [IntersectionObserver](https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API)'s ```ratio```. + * [IntersectionObserver](https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API)'s `ratio`. * * Throws when `elementHandle` does not point to an element * [connected](https://developer.mozilla.org/en-US/docs/Web/API/Node/isConnected) to a Document or a ShadowRoot.