Skip to content

Commit d4472f1

Browse files
authored
Merge pull request #325 from usernamehw/patch-8
Update article.md
2 parents 8d8ea09 + 04d6692 commit d4472f1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ First we'll see a simple example and then explain the methods.
1010

1111
## Example: show a message
1212

13-
For the start, let's see how to add a message on the page that looks nicer than `alert`.
13+
For a start, let's see how to add a message on the page that looks nicer than `alert`.
1414

1515
Here's how it will look:
1616

@@ -153,7 +153,7 @@ These methods are "old school": they exist from the ancient times and we can mee
153153

154154
For instance, how to insert *html* if we have it as a string? Or, given a node, how to insert another node *before* it? Of course, all that is doable, but not in an elegant way.
155155

156-
So there exists two other sets of insertion methods to handle all cases easily.
156+
So there exist two other sets of insertion methods to handle all cases easily.
157157

158158
### prepend/append/before/after
159159

@@ -279,7 +279,7 @@ The method has two brothers:
279279
- `elem.insertAdjacentText(where, text)` -- the same syntax, but a string of `text` in inserted "as text" instead of HTML,
280280
- `elem.insertAdjacentElement(where, elem)` -- the same syntax, but inserts an element.
281281

282-
They exist mainly to make the syntax "uniform". In practice, most of time only `insertAdjacentHTML` is used, because for elements and text we have methods `append/prepend/before/after` -- they are shorter to write and can insert nodes/text pieces.
282+
They exist mainly to make the syntax "uniform". In practice, most of the time only `insertAdjacentHTML` is used, because for elements and text we have methods `append/prepend/before/after` -- they are shorter to write and can insert nodes/text pieces.
283283

284284
So here's an alternative variant of showing a message:
285285

0 commit comments

Comments
 (0)