Skip to content
This repository was archived by the owner on Oct 5, 2023. It is now read-only.
This repository was archived by the owner on Oct 5, 2023. It is now read-only.

Chokes on DOCTYPE #23

@spikebrehm

Description

@spikebrehm

If there's a DOCTYPE in the document, then root is undefined.

i.e. if this is the second line in the XML file:

<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> 

then the output is:

{ declaration: { attributes: { version: '1.0', encoding: 'UTF-8' } },
  root: undefined }

and if the DOCTYPE line is removed, the output is i.e.:

{ declaration: { attributes: { version: '1.0', encoding: 'UTF-8' } },
  root:
   { name: 'plist',
     attributes: { version: '1.0' },
     children: [ [Object] ],
     content: '' } }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions