mirror of
https://github.com/nodejs/node.git
synced 2026-11-30 11:55:44 -05:00
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: https://github.com/nodejs/node/pull/45986 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
This commit is contained in:
1 parent
82023f2570
commit
76408bc1ed
1 file changed
+5
-3
+5
-3
@@ -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`
|
||||
|
||||
|
||||
Reference in new issue
Block a user