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: