diff --git a/chrome/content/zotero/xpcom/attachments.js b/chrome/content/zotero/xpcom/attachments.js index 5d371d48af..86a53a1a82 100644 --- a/chrome/content/zotero/xpcom/attachments.js +++ b/chrome/content/zotero/xpcom/attachments.js @@ -566,7 +566,7 @@ Zotero.Attachments = new function(){ }; } - if (mimeType == 'text/html') { + if (mimeType === 'text/html' || mimeType === 'application/xhtml+xml') { var sync = true; // Load WebPageDump code diff --git a/chrome/content/zotero/xpcom/mime.js b/chrome/content/zotero/xpcom/mime.js index 53d0135e3f..316c1652ce 100644 --- a/chrome/content/zotero/xpcom/mime.js +++ b/chrome/content/zotero/xpcom/mime.js @@ -109,6 +109,7 @@ Zotero.MIME = new function(){ // Enforce some extensions switch (mimeType) { case 'text/html': + case 'application/xhtml+xml': return 'html'; case 'application/pdf':