Save application/xhtml+xml using WebPageDump

Fixes http://forums.zotero.org/discussion/18808/bug-snapshot-of-page-produces-xml-parsing-error/
This commit is contained in:
Simon Kornblith 2011-07-20 13:31:18 +00:00
parent 94a42524e7
commit cd4f9e7235
2 changed files with 2 additions and 1 deletions

View file

@ -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

View file

@ -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':