events: add stop propagation flag to `Event.stopImmediatePropagation` · nodejs/node@96566fc · GitHub
Skip to content

Commit 96566fc

Browse files
mikemadesttargos
authored andcommitted
events: add stop propagation flag to Event.stopImmediatePropagation
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>
1 parent afe39ed commit 96566fc

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

lib/internal/event_target.js

Lines changed: 4 additions & 0 deletions

test/parallel/test-eventtarget.js

Lines changed: 2 additions & 0 deletions

0 commit comments

Comments
 (0)