Travis build: 1055

This commit is contained in:
30secondsofcode
2018-01-06 11:16:25 +00:00
parent 0fe7a2dce8
commit c1a1380d8b
2 changed files with 6 additions and 5 deletions

View File

@ -1786,11 +1786,12 @@ copyToClipboard('Lorem ipsum'); // 'Lorem ipsum' copied to clipboard.
### createElement
Creates an element from a string.
Creates an element from a string (without appending it to the document).
If the given string contains multiple elements, only the first one will be returned.
Use `document.createElement()` to create a new element. Set its `innerHTML`
to the string supplied as the argument. Use `ParentNode.firstElementChild` to
return the element version of the string.
Use `document.createElement()` to create a new element.
Set its `innerHTML` to the string supplied as the argument.
Use `ParentNode.firstElementChild` to return the element version of the string.
```js
const createElement = str => {