Open jmaguirrei opened 5 years ago
I found HTML not generating the attributes, for example:
This:
mount(document.body, el('h1', { id: 'x', style: 'cursor: pointer;' }, 'Hello world!')); console.log(document.body.outerHTML);
Give me this output
<body><h1>Hello world!</h1></body>
Initialized as
const { Document, SVGElement } = require('nodom'); global.document = new Document(); global.SVGElement = SVGElement;
JSDOM seems to do the same job correctly.
I found HTML not generating the attributes, for example:
This:
Give me this output
Initialized as
JSDOM seems to do the same job correctly.