From 462dfb3d98de24e81a17d23a102e343c789388e9 Mon Sep 17 00:00:00 2001 From: Andrey Krasnov <34657799+Doesntmeananything@users.noreply.github.com> Date: Mon, 15 Jul 2019 16:19:20 +0300 Subject: [PATCH] Add stylistic and grammar fixes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I fixed some of the awkward phrasing: • `concrete` is more common in the literary style of writing and is used to denote something opposite of abstract, so placing it here when describing a relation between html elements seems unnecessarily cumbersome. Plus there's some tautology in using `concrete` together with `actually`. I propose something simpler. • `It’s possible that event.target equals this` -- the present indefinite tense is not quite correctly used here, because this sentence describes something that only happens conditionally and is not always true. There are many ways to rewrite this sentence, and I propose one that aims to keep the original structure of the idea. --- 2-ui/2-events/02-bubbling-and-capturing/article.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/2-ui/2-events/02-bubbling-and-capturing/article.md b/2-ui/2-events/02-bubbling-and-capturing/article.md index 0593cd13..7db8399e 100644 --- a/2-ui/2-events/02-bubbling-and-capturing/article.md +++ b/2-ui/2-events/02-bubbling-and-capturing/article.md @@ -69,13 +69,13 @@ For instance, if we have a single handler `form.onclick`, then it can "catch" al In `form.onclick` handler: - `this` (`=event.currentTarget`) is the `
` element, because the handler runs on it. -- `event.target` is the concrete element inside the form that actually was clicked. +- `event.target` is the actual element inside the form that was clicked. Check it out: [codetabs height=220 src="bubble-target"] -It's possible that `event.target` equals `this` -- when the click is made directly on the `` element. +It's possible that `event.target` could equal `this` -- it happens when the click is made directly on the `` element. ## Stopping bubbling