Skip to content

degraded performance of Node.appendChild whith increasing amount of nodes appended #748

Description

@luffynando

Describe the bug

Using the xsd attached to the example, the parseFromString method of DOMParser hangs and does not resolve the expected document element. I tested it with any of the versions starting from 0.9.0 and the error occurs, using version 0.8.10 everything works as it should.

To Reproduce
https://stackblitz.com/edit/node-rufjdp?file=index.ts

Expected behavior
Correct parse without hangs the process

Runtime & Version:
xmldom version: 0.9.x
runtime version: any

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions