TypeScript-DOM-lib-generator icon indicating copy to clipboard operation
TypeScript-DOM-lib-generator copied to clipboard

Should `ShadowRootEventMap` have more events?

Open Fxxxlei opened this issue 1 year ago • 2 comments

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.

Fxxxlei avatar Mar 22 '23 03:03 Fxxxlei

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)?

saschanaz avatar Mar 22 '23 09:03 saschanaz

There already seems to be an issue referring to a few more inconsistencies involving event bubbling: whatwg/dom#1097

Fxxxlei avatar Mar 22 '23 13:03 Fxxxlei