Skip to content

Commit 2a454af

Browse files
committed
typo fixes
1 parent 7fccd95 commit 2a454af

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

2-ui/1-document/4-traversing-dom/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ DOM позволяет делать что угодно с HTML-элементо
114114

115115
Свойства `firstChild` и `lastChild` обеспечивают быстрый доступ к первому и последнему элементу.
116116

117-
Всегда верно:
117+
При наличии дочерних узлов всегда верно:
118118
```js
119119
elem.childNodes[0] === elem.firstChild
120120
elem.childNodes[elem.childNodes.length - 1] === elem.lastChild

2-ui/1-document/8-dom-polyfill/2-polyfill-closest/solution.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
var node = this;
1212

1313
while (node) {
14-
if (node.matches(selector)) return node;
14+
if (node.matches(css)) return node;
1515
else node = node.parentElement;
1616
}
1717
return null;

2-ui/1-document/8-dom-polyfill/3-polyfill-textcontent-ie8/solution.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
if (document.documentElement.textContent === undefined) {
88

99
// определяем свойство
10-
Object.defineProperty(HtmlElement.prototype, "textContent", {
10+
Object.defineProperty(HTMLElement.prototype, "textContent", {
1111
get: function() {
1212
return this.innerText;
1313
},

0 commit comments

Comments
 (0)