diff --git a/index.js b/index.js index d214260..b27d194 100644 --- a/index.js +++ b/index.js @@ -7,7 +7,6 @@ export default function doctypeToString(doctype) { + (doctype.systemId ? (doctype.publicId ? `` : ` SYSTEM`) + ` "${doctype.systemId}"` : ``) - + (doctype.internalSubset ? ` [${doctype.internalSubset}]` : ``) + `>` return doctypeString } diff --git a/index.test.js b/index.test.js index d1187ec..0197d78 100644 --- a/index.test.js +++ b/index.test.js @@ -36,13 +36,3 @@ test('should work for a doctype without public id', t => { const doc = makeStubDocument(doctype) t.is(doctypeToString(doc.doctype), doctype) }) - -// Cannot test, as modern parsers do not to support internal declarations. -// test('should work for a doctype with internal declarations', t => { -// const doctype = ` -// -// ]>` -// const doc = makeStubDocument(doctype) -// t.is(doctypeToString(doc.doctype), doctype) -// })