Merge pull request #2092 from peachesontour/patch-10

The last 2 code snippets shouldn't be runnable
This commit is contained in:
Ilya Kantor 2020-09-05 17:00:16 +03:00 committed by GitHub
commit 0b7f426054
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -620,7 +620,7 @@ The second API is very simple, as it works with text.
The most used recipes are probably:
1. Getting the selection:
```js run
```js
let selection = document.getSelection();
let cloned = /* element to clone the selected nodes to */;
@ -632,7 +632,7 @@ The most used recipes are probably:
}
```
2. Setting the selection:
```js run
```js
let selection = document.getSelection();
// directly: