2022-03-07 21:37:50 +00:00
|
|
|
const exclusionsForHTMLElement = [
|
|
|
|
'CustomElementsRegistry',
|
|
|
|
'HTMLElement',
|
|
|
|
'HTMLBodyElement',
|
|
|
|
'HTMLCanvasElement',
|
|
|
|
'HTMLDivElement',
|
|
|
|
'HTMLHeadElement',
|
|
|
|
'HTMLHtmlElement',
|
|
|
|
'HTMLImageElement',
|
|
|
|
'HTMLStyleElement',
|
|
|
|
'HTMLTemplateElement',
|
|
|
|
'HTMLUnknownElement',
|
|
|
|
'Image',
|
|
|
|
]
|
|
|
|
const exclusionsForElement = ['Element', ...exclusionsForHTMLElement] as const
|
|
|
|
const exclusionsForDocument = [
|
|
|
|
'CustomElementsRegistry',
|
|
|
|
'Document',
|
|
|
|
'HTMLDocument',
|
|
|
|
'document',
|
|
|
|
'customElements',
|
|
|
|
] as const
|
|
|
|
const exclusionsForNode = [
|
|
|
|
'Node',
|
|
|
|
'DocumentFragment',
|
|
|
|
'ShadowRoot',
|
|
|
|
...exclusionsForDocument,
|
|
|
|
...exclusionsForElement,
|
|
|
|
] as const
|
|
|
|
const exclusionsForEventTarget = [
|
|
|
|
'Event',
|
|
|
|
'CustomEvent',
|
|
|
|
'EventTarget',
|
|
|
|
'OffscreenCanvas',
|
|
|
|
'MediaQueryList',
|
|
|
|
'Window',
|
|
|
|
...exclusionsForNode,
|
|
|
|
] as const
|
|
|
|
const exclusionsForEvent = [
|
|
|
|
'Event',
|
|
|
|
'CustomEvent',
|
|
|
|
'EventTarget',
|
|
|
|
'MediaQueryList',
|
|
|
|
'OffscreenCanvas',
|
|
|
|
'Window',
|
|
|
|
...exclusionsForNode,
|
|
|
|
] as const
|
2022-03-07 21:36:22 +00:00
|
|
|
|
|
|
|
export const exclusions = {
|
|
|
|
'Document+': exclusionsForDocument,
|
|
|
|
'Element+': exclusionsForElement,
|
|
|
|
'Event+': exclusionsForEvent,
|
|
|
|
'EventTarget+': exclusionsForEventTarget,
|
|
|
|
'HTMLElement+': exclusionsForHTMLElement,
|
|
|
|
'Node+': exclusionsForNode,
|
2022-03-07 21:37:50 +00:00
|
|
|
'StyleSheet+': ['StyleSheet', 'CSSStyleSheet'],
|
2022-03-07 21:36:22 +00:00
|
|
|
}
|