Skip to content

Attributes not attached to the nodes #20

@jmaguirrei

Description

@jmaguirrei

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions