From 2113977eac094502d6754cdfb2d25f0e94688eb9 Mon Sep 17 00:00:00 2001 From: CobusT Date: Thu, 26 Aug 2021 11:34:39 -0700 Subject: [PATCH] Revert "add xml support for file attachments (#246)" This reverts commit fab344a29622ea492cd46de2847263b71ce6b019. --- src/fileAttachment.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/fileAttachment.js b/src/fileAttachment.js index ac2c4d44..5ae62c4e 100644 --- a/src/fileAttachment.js +++ b/src/fileAttachment.js @@ -64,12 +64,6 @@ class AbstractFile { const [JSZip, buffer] = await Promise.all([requireDefault(jszip.resolve()), this.arrayBuffer()]); return new ZipArchive(await JSZip.loadAsync(buffer)); } - async xml(mimeType = "application/xml") { - return (new DOMParser).parseFromString(await this.text(), mimeType); - } - async html() { - return this.xml("text/html"); - } } class FileAttachment extends AbstractFile {