From a662e1c7b23cf78e1beb0a6336bfbf29bb4de633 Mon Sep 17 00:00:00 2001 From: joaquinelio Date: Fri, 26 Mar 2021 23:43:52 -0300 Subject: [PATCH] typo --- 2-ui/99-ui-misc/02-selection-range/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2-ui/99-ui-misc/02-selection-range/article.md b/2-ui/99-ui-misc/02-selection-range/article.md index 6284e02e..c5ab3fbd 100644 --- a/2-ui/99-ui-misc/02-selection-range/article.md +++ b/2-ui/99-ui-misc/02-selection-range/article.md @@ -377,7 +377,7 @@ E.g. if the user starts selecting with mouse and goes from "Example" to "italic" There are events on to keep track of selection: -- `elem.onselectstart` -- when a selection *starts* on speficially elemen `elem` (or inside it). For instance, when the user presses the mouse button on it and starts to move the pointer. +- `elem.onselectstart` -- when a selection *starts* specifically on element `elem` (or inside it). For instance, when the user presses the mouse button on it and starts to move the pointer. - Preventing the default action cancels the selection start. So starting a selection from this element becomes impossible, but the element is still selectable. The visitor just needs to start the selection from elsewhere. - `document.onselectionchange` -- whenever a selection changes or starts. - Please note: this handler can be set only on `document`, it tracks all selections in it.