html-element
Version:
A simple HTMLElement shim on the server.
10 lines (9 loc) • 324 B
JavaScript
const window = require('./');
global.Document = window.Document;
global.Node = window.Node;
global.Element = window.Element;
global.Comment = window.Comment;
global.Text = window.Text;
global.document = window.document;
global.Event = window.Event;
global.CustomEvent = window.CustomEvent;