diff --git a/docs/api.md b/docs/api.md index 30704f8bcd..5468e67218 100644 --- a/docs/api.md +++ b/docs/api.md @@ -2176,7 +2176,7 @@ const { chromium } = require('playwright'); // Or 'firefox' or 'webkit'. })(); ``` -ElementHandle prevents DOM element from garbage collection unless the handle is [disposed](#elementhandledispose). ElementHandles are auto-disposed when their origin frame gets navigated. +ElementHandle prevents DOM element from garbage collection unless the handle is [disposed](#jshandledispose). ElementHandles are auto-disposed when their origin frame gets navigated. ElementHandle instances can be used as arguments in [`page.$eval()`](#pageevalselector-pagefunction-args) and [`page.evaluate()`](#pageevaluatepagefunction-args) methods.