-
-
Notifications
You must be signed in to change notification settings - Fork 8
Closed
Labels
💪 phase/solvedPost is donePost is done🗄 area/interfaceThis affects the public interfaceThis affects the public interface🦋 type/enhancementThis is great to haveThis is great to have🧒 semver/minorThis is backwards-compatible changeThis is backwards-compatible change
Description
Subject of the feature
When running in nodejs, the global document
is not available. There is no way to pass in the JSDOM
document or document implementation.
Problem
Without this feature, this util is useless in nodejs.
Expected behaviour
It should be possible to pass in the document via options eg:
toDOM(root, { document: new JSDOM().window.document });
Alternatives
non so far detected.
Metadata
Metadata
Assignees
Labels
💪 phase/solvedPost is donePost is done🗄 area/interfaceThis affects the public interfaceThis affects the public interface🦋 type/enhancementThis is great to haveThis is great to have🧒 semver/minorThis is backwards-compatible changeThis is backwards-compatible change