Skip to content

Commit 1a5ddf0

Browse files
authored
Update article.md
1 parent 83ce997 commit 1a5ddf0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

2-ui/99-ui-misc/01-mutation-observer/article.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Then after any changes, the `callback` is executed: changes are passed in the fi
3535

3636
[MutationRecord](https://dom.spec.whatwg.org/#mutationrecord) objects have properties:
3737

38-
- `type` -- mutation type, one of
38+
- `type` -- mutation type, یکی از موارد زیر
3939
- `"attributes"`: attribute modified
4040
- `"characterData"`: data modified, used for text nodes,
4141
- `"childList"`: child elements added/removed,
@@ -45,7 +45,7 @@ Then after any changes, the `callback` is executed: changes are passed in the fi
4545
- `attributeName/attributeNamespace` -- the name/namespace (for XML) of the changed attribute,
4646
- `oldValue` -- the previous value, only for attribute or text changes, if the corresponding option is set `attributeOldValue`/`characterDataOldValue`.
4747

48-
For example, here's a `<div>` with a `contentEditable` attribute. That attribute allows us to focus on it and edit.
48+
برای مثال، در مثال زیر یک `<div>` با یک `contentEditable` وجود دارد. این attribute به ما اجازه میدهد روی آن و ادیت کردن آن تمرکز کنیم.
4949

5050
```html run
5151
<div contentEditable id="elem">Click and <b>edit</b>, please</div>

0 commit comments

Comments
 (0)