From 51c9da322fd5c046c6b4b487c82ca6c7d95b4ec4 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Wed, 6 Jun 2012 01:25:28 -0400 Subject: [PATCH] Fix save to server in IE --- .../zotero/xpcom/translation/translate.js | 20 ++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/chrome/content/zotero/xpcom/translation/translate.js b/chrome/content/zotero/xpcom/translation/translate.js index 612d5793ea..e43f2d79ad 100644 --- a/chrome/content/zotero/xpcom/translation/translate.js +++ b/chrome/content/zotero/xpcom/translation/translate.js @@ -1637,20 +1637,30 @@ Zotero.Translate.Web.prototype._translateServerComplete = function(statusCode, r } // Extract items from ATOM/JSON response - var items = []; - var contents = response.getElementsByTagNameNS("http://www.w3.org/2005/Atom", "content"); + var items = [], contents; + if("getElementsByTagNameNS" in response) { + contents = response.getElementsByTagNameNS("http://www.w3.org/2005/Atom", "content"); + } else { // IE... + contents = response.getElementsByTagName("content"); + } for(var i=0, n=contents.length; i