TypeScript-DOM-lib-generator
TypeScript-DOM-lib-generator copied to clipboard
Should `ShadowRootEventMap` have more events?
Events in a shadow DOM can bubble up to the shadow root and can be listened to on the ShadowRoot
objects.
Thus I think ShadowRootEventMap
should include more events, probably extending GlobalEventHandlersEventMap
.
Sounds right, and I'd like to solve this in HTML spec instead (because ShadowRoot does not include GlobalEventHandlers right now). Can you open an issue there (and perhaps link back here)?
There already seems to be an issue referring to a few more inconsistencies involving event bubbling: whatwg/dom#1097