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.
1 parent 363a89d commit bc72d44Copy full SHA for bc72d44
test/test-suite.js
@@ -871,15 +871,15 @@
871
undefined
872
);
873
assert.strictEqual(
874
- typeof DOMPurify({ ...window, Element: undefined }).version,
+ typeof DOMPurify({ document, Element: undefined }).version,
875
'string'
876
877
878
- DOMPurify({ ...window, Element: undefined }).isSupported,
+ DOMPurify({ document, Element: undefined }).isSupported,
879
false
880
881
882
- DOMPurify({ ...window, Element: undefined }).sanitize,
+ DOMPurify({ document, Element: undefined }).sanitize,
883
884
885
assert.strictEqual(typeof DOMPurify(window).version, 'string');
0 commit comments