Skip to content

Commit aaa2a0d

Browse files
authored
Language improvements, clarifications
1 parent 2a3182a commit aaa2a0d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ libs:
77

88
# Walking the DOM
99

10-
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 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

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

1414
[cut]
1515

@@ -275,7 +275,7 @@ Certain types of DOM elements may provide additional properties, specific to the
275275
276276
Tables are a great example and important particular case of that.
277277
278-
**`<table>`** element supports (in addition to the given above) these properties:
278+
**The `<table>`** element supports (in addition to the given above) these properties:
279279
- `table.rows` -- the collection of `<tr>` elements of the table.
280280
- `table.caption/tHead/tFoot` -- references to elements `<caption>`, `<thead>`, `<tfoot>`.
281281
- `table.tBodies` -- the collection of `<tbody>` elements (can be many according to the standard).
@@ -285,8 +285,8 @@ Tables are a great example and important particular case of that.
285285
286286
**`<tr>`:**
287287
- `tr.cells` -- the collection of `<td>` and `<th>` cells inside the given `<tr>`.
288-
- `tr.sectionRowIndex` -- the number of the given `<tr>` inside the enclosing `<thead>/<tbody>`.
289-
- `tr.rowIndex` -- the number of the `<tr>` in the table.
288+
- `tr.sectionRowIndex` -- the position (index) of the given `<tr>` inside the enclosing `<thead>/<tbody>/<tfoot>`.
289+
- `tr.rowIndex` -- the number of the `<tr>` in the table as a whole (including all table rows).
290290
291291
**`<td>` and `<th>`:**
292292
- `td.cellIndex` -- the number of the cell inside the enclosing `<tr>`.

0 commit comments

Comments
 (0)