Skip to content

Doctypes without children are broken #691

Description

@kboshold

Describe the bug
The following document can not be parsed:
<!DOCTYPE root []><root></root>

To Reproduce
Try to parse the document
<!DOCTYPE root []><root></root>

Expected behavior
It is possible to parse the document

Runtime & Version:
xmldom version: master
runtime version: -
other related software and version: -


I will create an PR for the fix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions