Skip to content

Commit 76408bc

Browse files
deokjinkimRafaelGSS
authored andcommitted
doc: fix event.cancelBubble documentation
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 <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
1 parent 82023f2 commit 76408bc

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

doc/api/events.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -1748,14 +1748,16 @@ added: v14.5.0
17481748

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

1751-
#### `event.cancelBubble()`
1751+
#### `event.cancelBubble`
17521752

17531753
<!-- YAML
17541754
added: v14.5.0
17551755
-->
17561756

1757-
Alias for `event.stopPropagation()`. This is not used in Node.js and is
1758-
provided purely for completeness.
1757+
* Type: {boolean}
1758+
1759+
Alias for `event.stopPropagation()` if set to `true`. This is not used
1760+
in Node.js and is provided purely for completeness.
17591761

17601762
#### `event.cancelable`
17611763

0 commit comments

Comments
 (0)