Skip to content

Commit 4fca7f4

Browse files
authored
Update article.md
1 parent e3b9fa2 commit 4fca7f4

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

2-ui/99-ui-misc/02-selection-range/article.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,18 @@ let range = new Range();
5454
![](range-hello-1.svg)
5555
### Selecting element nodes
5656

57-
**Alternatively, if `node` is an element node, then `offset` must be the child number.**
5857

59-
That's handy for making ranges that contain nodes as a whole, not stop somewhere inside their text.
58+
** متناوباً، اگر `node` یک element node است، `offset` باید شماره فرزند باشد.**
6059

61-
For example, we have a more complex document fragment:
60+
این برای ایجاد محدوده هایی که شامل گره ها به عنوان یک کل هستند، مفید است، نه اینکه در جایی در متن خود متوقف شوند.
61+
62+
به عنوان مثال، ما یک قطعه سند پیچیده تر داریم:
6263

6364
```html autorun
6465
<p id="p">Example: <i>italic</i> and <b>bold</b></p>
6566
```
6667

67-
Here's its DOM structure with both element and text nodes:
68+
در اینجا ساختار DOM آن با هر دو گره عنصر و متن آمده است:
6869

6970
<div class="select-p-domtree"></div>
7071

0 commit comments

Comments
 (0)