www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit a03c10df065bf20e9822f005c6e735ce0e0751a1
parent e36c97536658cdcdae9f3010c31c60126c2b6da1
Author: Simon Kornblith <simon@simonster.com>
Date:   Mon, 28 May 2012 18:52:35 -0400

Actually use new unescape technique, and fix global variable

Diffstat:
Mchrome/content/zotero/xpcom/utilities.js | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/chrome/content/zotero/xpcom/utilities.js b/chrome/content/zotero/xpcom/utilities.js @@ -357,7 +357,7 @@ Zotero.Utilities = { .compare(platformVersion, "12.0") >= 0) { var parser = Components.classes["@mozilla.org/xmlextras/domparser;1"] .createInstance(Components.interfaces.nsIDOMParser); - domDocument = parser.parseFromString("<!DOCTYPE html><html></html>", + var domDocument = parser.parseFromString("<!DOCTYPE html><html></html>", "text/html"); node = domDocument.createElement("div"); } else { @@ -365,7 +365,7 @@ Zotero.Utilities = { } } - if(!node) { + if(node) { node.innerHTML = str; return node.textContent.replace(/ {2,}/g, " "); } else if(!nsIScriptableUnescapeHTML) {