The last 2 code snippets shouldn't be runnable

This commit is contained in:
Peter Kampjes 2020-08-30 07:51:35 -03:00 committed by GitHub
parent f830bc5d94
commit 5c4adfad8c
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: