Update article.md

Spelling things out a bit more for insertAdjacentHTML
This commit is contained in:
Peter Roche 2019-10-23 20:26:15 -06:00 committed by GitHub
parent f6ead73b4e
commit c8e062f499
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -534,7 +534,7 @@ So if we need to add a lot of text into HTML dynamically, and we're at page load
All these methods return `node`.
- Given a piece of HTML: `elem.insertAdjacentHTML(where, html)`, inserts depending on `where`:
- Given some HTML in `html`: `elem.insertAdjacentHTML(where, html)`, inserts it depending on the value of `where`:
- `"beforebegin"` -- insert `html` right before `elem`,
- `"afterbegin"` -- insert `html` into `elem`, at the beginning,
- `"beforeend"` -- insert `html` into `elem`, at the end,