Update some browser snippet descriptions
This commit is contained in:
@ -12,5 +12,6 @@ const insertBefore = (el, htmlString) => el.insertAdjacentHTML('beforebegin', ht
|
||||
```
|
||||
|
||||
```js
|
||||
insertBefore(document.getElementById('myId'), '<p>before</p>'); // <p>before</p> <div id="myId">...</div>
|
||||
```
|
||||
insertBefore(document.getElementById('myId'), '<p>before</p>');
|
||||
// <p>before</p> <div id="myId">...</div>
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user