Merge pull request #1150 from Doesntmeananything/patch-1

Add stylistic and grammar fixes
This commit is contained in:
Ilya Kantor 2019-07-16 08:36:35 +03:00 committed by GitHub
commit e5321b43ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -69,13 +69,13 @@ For instance, if we have a single handler `form.onclick`, then it can "catch" al
In `form.onclick` handler: In `form.onclick` handler:
- `this` (`=event.currentTarget`) is the `<form>` element, because the handler runs on it. - `this` (`=event.currentTarget`) is the `<form>` 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: Check it out:
[codetabs height=220 src="bubble-target"] [codetabs height=220 src="bubble-target"]
It's possible that `event.target` equals `this` -- when the click is made directly on the `<form>` element. It's possible that `event.target` could equal `this` -- it happens when the click is made directly on the `<form>` element.
## Stopping bubbling ## Stopping bubbling