You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 2-ui/1-document/07-modifying-document/article.md
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -302,7 +302,7 @@ So here's an alternative variant of showing a message:
302
302
303
303
How to insert one more similar message?
304
304
305
-
We could do a function and put the code there. But the alternative way would be to *clone* the existing `div` and modify the text inside it (if needed).
305
+
We could make a function and put the code there. But the alternative way would be to *clone* the existing `div` and modify the text inside it (if needed).
306
306
307
307
Sometimes when we have a big element, that may be faster and simpler.
308
308
@@ -337,7 +337,7 @@ An example of copying the message:
337
337
338
338
## Removal methods
339
339
340
-
To remove nodes, there are following methods:
340
+
To remove nodes, there are the following methods:
341
341
342
342
343
343
`parentElem.removeChild(node)`
@@ -411,7 +411,7 @@ The call to `document.write(html)` writes the `html` into page "right here and n
411
411
412
412
The method comes from times when there were no DOM, no standards... Really old times. It still lives, because there are scripts using it.
413
413
414
-
In modern scripts we can rarely see it, because of the important limitation.
414
+
In modern scripts we can rarely see it, because of the following important limitation:
415
415
416
416
**The call to `document.write` only works while the page is loading.**
417
417
@@ -479,4 +479,4 @@ Insertion and removal of nodes:
479
479
- To append HTML to the page before it has finished loading:
480
480
-`document.write(html)`
481
481
482
-
After the page is loaded such call erases the document. Mostly seen in old scripts.
482
+
After the page is loaded such a call erases the document. Mostly seen in old scripts.
0 commit comments