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/03-dom-navigation/article.md
+5-5
Original file line number
Diff line number
Diff line change
@@ -7,9 +7,9 @@ libs:
7
7
8
8
# Walking the DOM
9
9
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.
11
11
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.
13
13
14
14
[cut]
15
15
@@ -275,7 +275,7 @@ Certain types of DOM elements may provide additional properties, specific to the
275
275
276
276
Tables are a great example and important particular case of that.
277
277
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:
279
279
- `table.rows` -- the collection of `<tr>` elements of the table.
280
280
- `table.caption/tHead/tFoot` -- references to elements `<caption>`, `<thead>`, `<tfoot>`.
281
281
- `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.
285
285
286
286
**`<tr>`:**
287
287
- `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).
290
290
291
291
**`<td>` and `<th>`:**
292
292
- `td.cellIndex` -- the number of the cell inside the enclosing `<tr>`.
0 commit comments