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 2448cfa5b..bf8ebd2af 100644 --- a/2-ui/2-events/02-bubbling-and-capturing/article.md +++ b/2-ui/2-events/02-bubbling-and-capturing/article.md @@ -1,24 +1,24 @@ -# Bubbling and capturing +# Bubbling et capture -Let's start with an example. +Commençons par un exemple. -This handler is assigned to `
`:
+Ce gestionnaire d'événement est assigné au ``, mais s'exécute également si on clique sur l'un des sous-éléments comme `` ou ``:
```html autorun height=60
- If you click on EM
, the handler on DIV
runs.
+ Si on clique sur l'EM
, le gestionnaire du DIV
s'exécute.
```
-Isn't it a bit strange? Why does the handler on `` run if the actual click was on ``?
+Ce n'est pas un peu étrange ? Pourquoi le gestionnaire du `` s'exécute alors qu'on a cliqué sur l'``?
-## Bubbling
+## Bubbling (ou "bouillonement")
-The bubbling principle is simple.
+Le principe du 'bubbling' est simple.
-**When an event happens on an element, it first runs the handlers on it, then on its parent, then all the way up on other ancestors.**
+**Quand un événement se produit sur un élément, il exécute d'abord les gestionnaires ('handlers') sur cet élément, puis sur son parent, puis remonte toute la chaîne d'ancêtres.**
-Let's say we have 3 nested elements `FORM > DIV > P` with a handler on each of them:
+Disons qu'on a 3 éléments imbriqués `FORM > DIV > P` qui ont chacun un gestionnaire associé:
```html run autorun
1 2 3 Most deeply nested element
\ No newline at end of file
+
\ No newline at end of file
diff --git a/2-ui/2-events/02-bubbling-and-capturing/eventflow.svg b/2-ui/2-events/02-bubbling-and-capturing/eventflow.svg
index 566064cd6..35e9230d7 100644
--- a/2-ui/2-events/02-bubbling-and-capturing/eventflow.svg
+++ b/2-ui/2-events/02-bubbling-and-capturing/eventflow.svg
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/2-ui/2-events/index.md b/2-ui/2-events/index.md
index f4996083c..3814932c1 100644
--- a/2-ui/2-events/index.md
+++ b/2-ui/2-events/index.md
@@ -1,3 +1,3 @@
-# Introduction to Events
+# Introduction aux Evénements
-An introduction to browser events, event properties and handling patterns.
+Une introduction aux événements du navigateurs, leurs propriétés et leurs modèles de gestion.