Skip to content

Commit 26e28c7

Browse files
Update 2-ui/1-document/04-searching-elements-dom/article.md
Co-Authored-By: Malleys <folant.siorus@gmail.com>
1 parent 8b657da commit 26e28c7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • 2-ui/1-document/04-searching-elements-dom

2-ui/1-document/04-searching-elements-dom/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@
157157
alert(chapter.closest('.book')); // UL
158158
alert(chapter.closest('.contents')); // DIV
159159
160-
alert(chapter.closest('h1')); // null (потому что h1 не предок)
160+
alert(chapter.closest('h1')); // null (потому что h1 -- не предок)
161161
</script>
162162
```
163163

0 commit comments

Comments
 (0)