From 1161392f786573ffb84019f0e82107f8187e6346 Mon Sep 17 00:00:00 2001 From: dawei-wang Date: Sat, 22 Oct 2022 19:23:17 -0700 Subject: [PATCH] Add Alt text Add alt text to mouseenter.png, mouseover.png Relates to mdn/content#21616 --- files/en-us/web/api/element/mouseenter_event/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/en-us/web/api/element/mouseenter_event/index.md b/files/en-us/web/api/element/mouseenter_event/index.md index b26916f39766398..062ee213430fdad 100644 --- a/files/en-us/web/api/element/mouseenter_event/index.md +++ b/files/en-us/web/api/element/mouseenter_event/index.md @@ -98,12 +98,12 @@ Though similar to {{domxref("Element/mouseover_event", "mouseover")}}, `mouseent ### Behavior of `mouseenter` events -![](mouseenter.png) +![Mouseenter behavior diagram](mouseenter.png) One `mouseenter` event is sent to each element of the hierarchy when entering them. Here 4 events are sent to the four elements of the hierarchy when the pointer reaches the text. ### Behavior of `mouseover` events -![](mouseover.png) +![Mouseover behavior diagram](mouseover.png) A single `mouseover` event is sent to the deepest element of the DOM tree, then it bubbles up the hierarchy until it is canceled by a handler or reaches the root. With deep hierarchies, the number of `mouseover` events sent can be quite huge and cause significant performance problems. In such cases, it is better to listen for `mouseenter` events.