Commit 96566fc
events: add stop propagation flag to
Spec mention stopImmediatePropagation should set both flags:
"stop propagation" and "stop immediate propagation".
So the second is not supported by Node.js as there is no
hierarchy and bubbling,
but the flags are both present as well as stopPropagation.
It would makes sense to follow specs on that.
Refs: https://dom.spec.whatwg.org/#dom-event-stopimmediatepropagation
PR-URL: #39463
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>Event.stopImmediatePropagation
1 parent afe39ed commit 96566fcCopy full SHA for 96566fc
File tree
Expand file treeCollapse file tree
2 files changed
+6
-0
lines changedOpen diff view settings
Filter options
- lib/internal
- test/parallel
Expand file treeCollapse file tree
2 files changed
+6
-0
lines changedOpen diff view settings
Collapse file
lib/internal/event_target.js
Copy file name to clipboardExpand all lines: lib/internal/event_target.js+4Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
168 | 168 | |
169 | 169 | |
170 | 170 | |
| 171 | + |
| 172 | + |
| 173 | + |
| 174 | + |
171 | 175 | |
172 | 176 | |
173 | 177 | |
|
Collapse file
test/parallel/test-eventtarget.js
Copy file name to clipboardExpand all lines: test/parallel/test-eventtarget.js+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
345 | 345 | |
346 | 346 | |
347 | 347 | |
| 348 | + |
348 | 349 | |
| 350 | + |
349 | 351 | |
350 | 352 | |
351 | 353 | |
|
0 commit comments