diff --git a/2-ui/2-events/03-event-delegation/article.md b/2-ui/2-events/03-event-delegation/article.md index c999751d..c423d849 100644 --- a/2-ui/2-events/03-event-delegation/article.md +++ b/2-ui/2-events/03-event-delegation/article.md @@ -102,8 +102,8 @@ table.onclick = function(event) { Explanations: 1. The method `elem.closest(selector)` returns the nearest ancestor that matches the selector. In our case we look for `` on the way up from the source element. 2. If `event.target` is not inside any ``, then the call returns `null`, and we don't have to do anything. -3. In case of nested tables, `event.target` may be a `` outside of the current table. So we check if that's actually *our* ``. -4. And, if it is so, highlight it. +3. In case of nested tables, `event.target` may be a `` lying outside of the current table. So we check if that's actually *our table's* ``. +4. And, if it's so, then highlight it. ## Delegation example: actions in markup diff --git a/4-frames-and-windows/06-clickjacking/protector.view/iframe.html b/4-frames-and-windows/06-clickjacking/protector.view/iframe.html index f7ba56b3..a1ca6fcc 100644 --- a/4-frames-and-windows/06-clickjacking/protector.view/iframe.html +++ b/4-frames-and-windows/06-clickjacking/protector.view/iframe.html @@ -33,9 +33,9 @@ This text is always visible. - But if the page is shown inside a document from another domain, the div over it prevents any actions. + But if the page was open inside a document from another domain, the div over it would prevent any actions. - +