diff --git a/2-ui/1-document/03-dom-navigation/article.md b/2-ui/1-document/03-dom-navigation/article.md index b5f03098c5..665ada3433 100644 --- a/2-ui/1-document/03-dom-navigation/article.md +++ b/2-ui/1-document/03-dom-navigation/article.md @@ -4,7 +4,6 @@ libs: --- - # Walking the DOM The DOM allows us to do anything with elements and their contents, but first we need to reach the corresponding DOM object. @@ -56,278 +55,3 @@ So, in the example below the first `alert` shows `null`: -``` -```` - -```smart header="In the DOM world `null` means \"doesn't exist\"" -In the DOM, the `null` value means "doesn't exist" or "no such node". -``` - -## Children: childNodes, firstChild, lastChild - -There are two terms that we'll use from now on: - -- **Child nodes (or children)** -- elements that are direct children. In other words, they are nested exactly in the given one. For instance, `` and `` are children of `` element. -- **Descendants** -- all elements that are nested in the given one, including children, their children and so on. - -For instance, here `` has children `
` and `