We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0f1a4e commit 184475dCopy full SHA for 184475d
src/dom/basicdom/element-registry.ts
@@ -27,7 +27,7 @@ export function registerElement(elementName: string, resolver: () => ElementNode
27
28
export function createElement(elementName: string, owner?: DocumentNode): ElementNode {
29
if (!owner) {
30
- owner = document as unknown as DocumentNode;
+ owner = window.document as unknown as DocumentNode;
31
}
32
const normalizedName = normalizeElementName(elementName);
33
const elementDefinition = elementMap[normalizedName];
0 commit comments