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-5Lines changed: 5 additions & 5 deletions
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
Here's a picture of links that allow to travel between DOM nodes:
15
15
@@ -273,7 +273,7 @@ Certain types of DOM elements may provide additional properties, specific to the
273
273
274
274
Tables are a great example and important particular case of that.
275
275
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:
277
277
- `table.rows` -- the collection of `<tr>` elements of the table.
278
278
- `table.caption/tHead/tFoot` -- references to elements `<caption>`, `<thead>`, `<tfoot>`.
279
279
- `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.
283
283
284
284
**`<tr>`:**
285
285
- `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).
288
288
289
289
**`<td>` and `<th>`:**
290
290
- `td.cellIndex` -- the number of the cell inside the enclosing `<tr>`.
0 commit comments