Merge pull request #3051 from josephharkins/josephharkins-patch-2

Spelling error and grammar
This commit is contained in:
Ilya Kantor 2022-06-12 23:53:46 +02:00 committed by GitHub
commit 08d5c71e2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -217,7 +217,7 @@ The range object that we created in the example above has following properties:
## Range selection methods
There are many convenience methods to manipulate ranges.
There are many convenient methods to manipulate ranges.
We've already seen `setStart` and `setEnd`, here are other similar methods.
@ -438,7 +438,7 @@ As text: <span id="astext"></span>
## Selection methods
We can work with the selection by addding/removing ranges:
We can work with the selection by adding/removing ranges:
- `getRangeAt(i)` -- get i-th range, starting from `0`. In all browsers except Firefox, only `0` is used.
- `addRange(range)` -- add `range` to selection. All browsers except Firefox ignore the call, if the selection already has an associated range.