Skip to content

Commit 4b09459

Browse files
Allan Bonadioallan-bonadio
authored andcommitted
a few typos
1 parent 410ca45 commit 4b09459

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

files/en-us/web/api/element/mouseleave_event/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ browser-compat: api.Element.mouseleave_event
1010

1111
The **`mouseleave`** event is fired at an {{domxref("Element")}} when the cursor of a pointing device (usually a mouse) is moved out of it.
1212

13-
`mouseleave` and {{domxref("Element/mouseout_event", "mouseout")}} are similar but differ in that `mouseleave` does not bubble and `mouseout` does. This means that `mouseleave` is fired when the pointer has exited the element _and_ all of its descendants, whereas `mouseout` is fired when the pointer leaves the element _or_ leaves one of the element's descendants (even if the pointer is still within the element). Other than that, leave and out events for the same situation are dispatched at the same time, if appropriate.
13+
`mouseleave` and {{domxref("Element/mouseout_event", "mouseout")}} are similar but differ in that `mouseleave` does not bubble and `mouseout` does. This means that `mouseleave` is fired when the pointer has exited the element _and_ all of its descendants, whereas `mouseout` is fired when the pointer leaves the element _or_ leaves one of the element's descendants, because of bubbling (even if the pointer is still within the element). Other than that, leave and out events for the same situation are dispatched at the same time, if appropriate.
1414

1515
The `mouseleave` and `mouseout` events will not be triggered when the element is replaced or removed from the DOM.
1616

files/en-us/web/api/element/mouseup_event/index.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ The **`mouseup`** event is fired at an {{domxref("Element")}} when a button on a
1212

1313
`mouseup` events are the counterpoint to {{domxref("Element.mousedown_event", "mousedown")}} events.
1414

15-
> [!NOTE]
16-
> This behavior is different from {{domxref("Element/pointerdown_event", "pointerdown")}} events. MouseDown events fire whenever any button on a mouse is pressed down. `pointerdown` events fire only upon the first button press; subsequent button presses don't fire `pointerdown` events.
17-
1815
> [!NOTE]
1916
> This behavior is different from {{domxref("Element/pointerup_event", "pointerup")}} events. `mouseup` events fire whenever any button on a mouse is released. `pointerup` events fire only upon the last button release; previous button releases, while other buttons are held down, don't fire `pointerup` events.
2017

0 commit comments

Comments
 (0)