@tempots/dom > DOMContext > withDocument
Creates a new DOMContext instance with the provided document.
DOMContext
document
Signature:
readonly withDocument: (document: Document) => DOMContext;