diff --git a/files/en-us/web/api/document/getselection/index.html b/files/en-us/web/api/document/getselection/index.html index 1a627e7dcad4821..6fcf46f16e5f9aa 100644 --- a/files/en-us/web/api/document/getselection/index.html +++ b/files/en-us/web/api/document/getselection/index.html @@ -52,7 +52,7 @@

String representation of
let selectedText = selection.toString();
-

+

You can call {{domxref("Window.getSelection()")}}, which works identically to Document.getSelection().