From e4288e4ec3d0d513d132cd946ca12ac2e6b8d5b8 Mon Sep 17 00:00:00 2001 From: Ilya Kantor Date: Tue, 14 May 2019 15:40:29 +0300 Subject: [PATCH] minor --- 10-misc/12-mutation-observer/article.md | 41 +++++++++++++------------ 1 file changed, 21 insertions(+), 20 deletions(-) diff --git a/10-misc/12-mutation-observer/article.md b/10-misc/12-mutation-observer/article.md index 1045e87a..d1deb72d 100644 --- a/10-misc/12-mutation-observer/article.md +++ b/10-misc/12-mutation-observer/article.md @@ -35,9 +35,9 @@ Then after any changes, the `callback` is executed, with a list of [MutationReco [MutationRecord](https://dom.spec.whatwg.org/#mutationrecord) objects have properties: - `type` -- mutation type, one of - - `"attributes"` (attribute modified) - - `"characterData"` (data modified) - - `"childList"` (elements added/removed), + - `"attributes"`: attribute modified + - `"characterData"`: data modified + - `"childList"`: elements added/removed, - `target` -- where the change occured: an element for "attributes", or text node for "characterData", or an element for a "childList" mutation, - `addedNodes/removedNodes` -- nodes that were added/removed, - `previousSibling/nextSibling` -- the previous and next sibling to added/removed nodes, @@ -48,7 +48,7 @@ Then after any changes, the `callback` is executed, with a list of [MutationReco For example, here's a `
` with `contentEditable` attribute. That attribute allows us to focus on it and edit. ```html run -
Edit me, please
+
Click and edit, please