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:
parent
94a42524e7
commit
cd4f9e7235
2 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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':
|
||||
|
|
Loading…
Reference in a new issue