Closed
Description
Applies to 0.7.0 and 0.6.0.
The parsed document has a DTD of
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.1 20151215//EN" "https://jats.nlm.nih.gov/publishing/1.1/JATS-journalpublishing1.dtd">
The DocumentType is in the list of child nodes:
Document {
...
childNodes: {
...
'2': DocumentType {
name: 'article',
nodeName: 'article',
publicId: '"-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.1 20151215//EN"',
systemId: '"https://jats.nlm.nih.gov/publishing/1.1/JATS-journalpublishing1.dtd"',
lineNumber: 2,
columnNumber: 1,
previousSibling: [Text],
nextSibling: [Element],
parentNode: [Circular],
ownerDocument: [Circular]
},
However, document.doctype === null
. (Not undefined
.)
-Ryan