🐛 could pass undefined to Node.contains() (#1863)
This commit is contained in:
parent
ff93c6fd10
commit
94376f6141
|
|
@ -144,7 +144,7 @@ function getOverwrittenAppendChildOrInsertBefore(opts: {
|
||||||
return function appendChildOrInsertBefore<T extends Node>(
|
return function appendChildOrInsertBefore<T extends Node>(
|
||||||
this: HTMLHeadElement | HTMLBodyElement,
|
this: HTMLHeadElement | HTMLBodyElement,
|
||||||
newChild: T,
|
newChild: T,
|
||||||
refChild?: Node | null,
|
refChild: Node | null = null,
|
||||||
) {
|
) {
|
||||||
let element = newChild as any;
|
let element = newChild as any;
|
||||||
const { rawDOMAppendOrInsertBefore, isInvokedByMicroApp, containerConfigGetter } = opts;
|
const { rawDOMAppendOrInsertBefore, isInvokedByMicroApp, containerConfigGetter } = opts;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user