Skip to content

Commit 3808ba9

Browse files
bugs with the last change
1 parent 1860ba1 commit 3808ba9

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

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

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@
7979

8080
## querySelectorAll [#querySelectorAll]
8181

82-
By far, the most versatile method, `elem.querySelectorAll(css)` returns all elements inside `elem` matching the given CSS selector.
82+
تا اینجا، همه‌کاره‌ترین روش `elem.querySelectorAll(css)` بود که تمام elementهای درون `elem` که با css selector داده شده تطابق دارند را انتخاب می‌کند.
8383

84-
Here we look for all `<li>` elements that are last children:
84+
اینحا به دنبال تمام `<li>`هایی هستیم که آخرین فرزند هستند:
8585

8686
```html run
8787
<ul>
@@ -103,10 +103,10 @@ Here we look for all `<li>` elements that are last children:
103103
</script>
104104
```
105105

106-
This method is indeed powerful, because any CSS selector can be used.
106+
این method واقعا قدرتمند است، چون هر css selectorای می‌تواند استفاده شود.
107107

108-
```smart header="Can use pseudo-classes as well"
109-
Pseudo-classes in the CSS selector like `:hover` and `:active` are also supported. For instance, `document.querySelectorAll(':hover')` will return the collection with elements that the pointer is over now (in nesting order: from the outermost `<html>` to the most nested one).
108+
```smart header="pseudo-classها نیز می‌توانند استفاده شوند"
109+
pseudo-classها در css selector مثل `:hover` و `:active` `document.querySelectorAll(':hover')` مجموعه‌ای از elementهایی که نشانگر الان روی آن‌ها است را برمی‌گرداند. (به ترتیب تو در تو: از بیرونی ترین `<html>` تا درونی‌ترین( هم پشتیبانی شده‌اند. برای مثال
110110
```
111111

112112
## querySelector [#querySelector]

0 commit comments

Comments
 (0)