close #42 fallback to html when doctype is invalid
This commit is contained in:
@@ -85,7 +85,7 @@ function buildNode(
|
||||
return doc.implementation.createDocument(null, '', null);
|
||||
case NodeType.DocumentType:
|
||||
return doc.implementation.createDocumentType(
|
||||
n.name,
|
||||
n.name || 'html',
|
||||
n.publicId,
|
||||
n.systemId,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user