Skip to content

Commit

Permalink
doc: fix event.cancelBubble documentation
Browse files Browse the repository at this point in the history
Setter of `event.cancelBubble` is a no-op if the value passed to it is
not `true`.

Refs: https://dom.spec.whatwg.org/#interface-event
PR-URL: #45986
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
  • Loading branch information
deokjinkim authored and juanarbol committed Jan 31, 2023
1 parent b454a76 commit 1ec14c2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions doc/api/events.md
Expand Up @@ -1748,14 +1748,16 @@ added: v14.5.0

This is not used in Node.js and is provided purely for completeness.

#### `event.cancelBubble()`
#### `event.cancelBubble`

<!-- YAML
added: v14.5.0
-->

Alias for `event.stopPropagation()`. This is not used in Node.js and is
provided purely for completeness.
* Type: {boolean}

Alias for `event.stopPropagation()` if set to `true`. This is not used
in Node.js and is provided purely for completeness.

#### `event.cancelable`

Expand Down

0 comments on commit 1ec14c2

Please sign in to comment.