mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Update serialize-doctype.ts
This commit is contained in:
parent
2b80597541
commit
50d61960c2
@ -30,8 +30,8 @@ const createDocType = (ignored: string, doctype?: DocumentType | null): string =
|
||||
|
||||
const name = htmlEscape(doctype.name);
|
||||
const internalSubset = htmlEscape(doctype.internalSubset);
|
||||
const publicId = `"${htmlEscape(doctype.publicId)}"`;
|
||||
const systemId = `"${htmlEscape(doctype.systemId)}"`;
|
||||
const publicId = doctype.publicId ? `"${htmlEscape(doctype.publicId)}"` : '';
|
||||
const systemId = doctype.systemId ? `"${htmlEscape(doctype.systemId)}"` : '';
|
||||
|
||||
return `<!DOCTYPE ${name}${internalSubset}${publicId}${systemId}><html></html>`;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user