We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 877d99e + d9b4dab commit 325cc07Copy full SHA for 325cc07
.changeset/pretty-bags-cheer.md
@@ -0,0 +1,6 @@
1
+---
2
+'@remote-dom/polyfill': patch
3
+'@remote-dom/core': patch
4
5
+
6
+Fix document fragment owner document
packages/polyfill/source/DocumentFragment.ts
@@ -4,5 +4,7 @@ import {ParentNode} from './ParentNode.ts';
export class DocumentFragment extends ParentNode {
nodeType = NodeType.DOCUMENT_FRAGMENT_NODE;
[NAME] = '#document-fragment';
7
- [OWNER_DOCUMENT] = window.document as any;
+ [OWNER_DOCUMENT] = (typeof window !== 'undefined'
8
+ ? window.document
9
+ : null) as any;
10
}
0 commit comments