From aaa2a0dc9b50882dbf5d0df00f4efd7d803c2b51 Mon Sep 17 00:00:00 2001 From: Brent Guffens Date: Mon, 5 Feb 2018 13:47:07 +0100 Subject: [PATCH] Language improvements, clarifications --- 2-ui/1-document/03-dom-navigation/article.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/2-ui/1-document/03-dom-navigation/article.md b/2-ui/1-document/03-dom-navigation/article.md index b58f15fe..0578d14d 100644 --- a/2-ui/1-document/03-dom-navigation/article.md +++ b/2-ui/1-document/03-dom-navigation/article.md @@ -7,9 +7,9 @@ libs: # Walking the DOM -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. +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. -All operations on DOM start with the `document` object. From it we can access any node. +All operations on the DOM start with the `document` object. From it we can access any node. [cut] @@ -275,7 +275,7 @@ Certain types of DOM elements may provide additional properties, specific to the Tables are a great example and important particular case of that. -**``** element supports (in addition to the given above) these properties: +**The `
`** element supports (in addition to the given above) these properties: - `table.rows` -- the collection of `` elements of the table. - `table.caption/tHead/tFoot` -- references to elements ``, ``. - `table.tBodies` -- the collection of `` elements (can be many according to the standard). @@ -285,8 +285,8 @@ Tables are a great example and important particular case of that. **``:** - `tr.cells` -- the collection of ``. -- `tr.sectionRowIndex` -- the number of the given `` inside the enclosing `/`. -- `tr.rowIndex` -- the number of the `` in the table. +- `tr.sectionRowIndex` -- the position (index) of the given `` inside the enclosing `//`. +- `tr.rowIndex` -- the number of the `` in the table as a whole (including all table rows). **``.
`, `
` and `` cells inside the given `
` and ``:** - `td.cellIndex` -- the number of the cell inside the enclosing `