Skip to content

Commit f954987

Browse files
authored
Update article.md
Further tweaks in the insertAdjacent... neighborhood of Summary.
1 parent c8e062f commit f954987

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -534,13 +534,13 @@ 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 some HTML in `html`: `elem.insertAdjacentHTML(where, html)`, inserts it depending on the value of `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,
541541
- `"afterend"` -- insert `html` right after `elem`.
542542

543-
Also there are similar methods `elem.insertAdjacentText` and `elem.insertAdjacentElement`, they insert text strings and elements, but they are rarely used.
543+
Also there are also similar methods, `elem.insertAdjacentText` and `elem.insertAdjacentElement`, that insert text strings and elements, but they are rarely used.
544544

545545
- To append HTML to the page before it has finished loading:
546546
- `document.write(html)`

0 commit comments

Comments
 (0)