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
Open
Description
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
Labels
No labels