diff --git a/src/dom/basicdom/element-registry.ts b/src/dom/basicdom/element-registry.ts index ae789227..cf2d5066 100644 --- a/src/dom/basicdom/element-registry.ts +++ b/src/dom/basicdom/element-registry.ts @@ -27,7 +27,7 @@ export function registerElement(elementName: string, resolver: () => ElementNode export function createElement(elementName: string, owner?: DocumentNode): ElementNode { if (!owner) { - owner = document as unknown as DocumentNode; + owner = window.document as unknown as DocumentNode; } const normalizedName = normalizeElementName(elementName); const elementDefinition = elementMap[normalizedName];