Skip to content

Commit 9ce3109

Browse files
authored
Merge pull request #402 from brentguf/dom-nav
Walking the DOM chapter
2 parents 6879509 + aaa2a0d commit 9ce3109

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

Lines changed: 5 additions & 5 deletions
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
Here's a picture of links that allow to travel between DOM nodes:
1515

@@ -273,7 +273,7 @@ Certain types of DOM elements may provide additional properties, specific to the
273273
274274
Tables are a great example and important particular case of that.
275275
276-
**`<table>`** element supports (in addition to the given above) these properties:
276+
**The `<table>`** element supports (in addition to the given above) these properties:
277277
- `table.rows` -- the collection of `<tr>` elements of the table.
278278
- `table.caption/tHead/tFoot` -- references to elements `<caption>`, `<thead>`, `<tfoot>`.
279279
- `table.tBodies` -- the collection of `<tbody>` elements (can be many according to the standard).
@@ -283,8 +283,8 @@ Tables are a great example and important particular case of that.
283283
284284
**`<tr>`:**
285285
- `tr.cells` -- the collection of `<td>` and `<th>` cells inside the given `<tr>`.
286-
- `tr.sectionRowIndex` -- the number of the given `<tr>` inside the enclosing `<thead>/<tbody>`.
287-
- `tr.rowIndex` -- the number of the `<tr>` in the table.
286+
- `tr.sectionRowIndex` -- the position (index) of the given `<tr>` inside the enclosing `<thead>/<tbody>/<tfoot>`.
287+
- `tr.rowIndex` -- the number of the `<tr>` in the table as a whole (including all table rows).
288288
289289
**`<td>` and `<th>`:**
290290
- `td.cellIndex` -- the number of the cell inside the enclosing `<tr>`.

0 commit comments

Comments
 (0)