From 5f0fd940c47de7fc7e87ec3ef314514dc787f0a5 Mon Sep 17 00:00:00 2001 From: Ilya Kantor Date: Mon, 1 Jul 2019 12:36:55 +0300 Subject: [PATCH] minor --- 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 e805710e..f2e4ba15 100644 --- a/2-ui/99-ui-misc/02-selection-range/article.md +++ b/2-ui/99-ui-misc/02-selection-range/article.md @@ -94,7 +94,7 @@ Let's select `"Example: italic"`. That's two first children of `

` (cou ``` - `range.setStart(p, 0)` -- sets the start at the 0th child of `

` (that's a text node `"Example: "`). -- `range.setEnd(p, 2)` -- spans the range up to (but not including) 2nd child of `

` (that's a text node `" and "`, but as the end is not included, the last selected node is ``). +- `range.setEnd(p, 2)` -- spans the range up to (but not including) 2nd child of `

` (that's a text node `" and "`, but as the end is not included, so the last selected node is ``). Here's a more flexible test stand where you try more variants: