Skip to content

Commit c8e062f

Browse files
authored
Update article.md
Spelling things out a bit more for insertAdjacentHTML
1 parent f6ead73 commit c8e062f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

2-ui/1-document/07-modifying-document/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ So if we need to add a lot of text into HTML dynamically, and we're at page load
534534

535535
All these methods return `node`.
536536

537-
- Given a piece of HTML: `elem.insertAdjacentHTML(where, html)`, inserts depending on `where`:
537+
- Given some HTML in `html`: `elem.insertAdjacentHTML(where, html)`, inserts it depending on the value of `where`:
538538
- `"beforebegin"` -- insert `html` right before `elem`,
539539
- `"afterbegin"` -- insert `html` into `elem`, at the beginning,
540540
- `"beforeend"` -- insert `html` into `elem`, at the end,

0 commit comments

Comments
 (0)