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

Chokes on DOCTYPE #23

Open
spikebrehm opened this issue Dec 1, 2016 · 0 comments
Open

Chokes on DOCTYPE #23

spikebrehm opened this issue Dec 1, 2016 · 0 comments

Comments

@spikebrehm
Copy link

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: '' } }
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant