Skip to content

Commit 6de8c3c

Browse files
authored
Merge pull request #795 from weswhite/master
added us so the sentence makes sense
2 parents 5c61bed + a86e220 commit 6de8c3c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

2-ui/1-document/02-dom-nodes/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ drawHtmlTree(node6, 'div.domtree', 690, 500);
176176
177177
Here we see a new tree node type -- *comment node*, labeled as `#comment`.
178178
179-
We may think -- why a comment is added to the DOM? It doesn't affect the visual representation in any way. But there's a rule -- if something's in HTML, then it also must be in the DOM tree.
179+
We may think -- why is a comment added to the DOM? It doesn't affect the visual representation in any way. But there's a rule -- if something's in HTML, then it also must be in the DOM tree.
180180
181181
**Everything in HTML, even comments, becomes a part of the DOM.**
182182

2-ui/1-document/03-dom-navigation/article.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ libs:
77

88
# Walking the DOM
99

10-
The DOM allows to do anything with elements and their contents, but first we need to reach the corresponding DOM object, get it into a variable, and then we are able to modify it.
10+
The DOM allows us to do anything with elements and their contents, but first we need to reach the corresponding DOM object, get it into a variable, and then we are able to modify it.
1111

1212
All operations on the DOM start with the `document` object. From it we can access any node.
1313

14-
Here's a picture of links that allow to travel between DOM nodes:
14+
Here's a picture of links that allow for travel between DOM nodes:
1515

1616
![](dom-links.png)
1717

@@ -155,9 +155,9 @@ The first thing is nice. The second is tolerable, because we can use `Array.from
155155
```warn header="DOM collections are read-only"
156156
DOM collections, and even more -- *all* navigation properties listed in this chapter are read-only.
157157
158-
We can't replace a child by something else assigning `childNodes[i] = ...`.
158+
We can't replace a child by something else by assigning `childNodes[i] = ...`.
159159
160-
Changing DOM needs other methods, we'll see them in the next chapter.
160+
Changing DOM needs other methods. We will see them in the next chapter.
161161
```
162162
163163
```warn header="DOM collections are live"
@@ -309,7 +309,7 @@ An example of usage:
309309
310310
The specification: [tabular data](https://html.spec.whatwg.org/multipage/tables.html).
311311
312-
There are also additional navigation properties for HTML forms. We'll look at them later when start working with forms.
312+
There are also additional navigation properties for HTML forms. We'll look at them later when we start working with forms.
313313
314314
# Summary
315315

0 commit comments

Comments
 (0)