From e272465f6c8e97f7b8637532922fc6b9a365f293 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adomas=20Ven=C4=8Dkauskas?= Date: Thu, 20 Apr 2017 13:39:19 +0300 Subject: [PATCH] Fix DocumentData serialization hairiness due to #htmlSpecialChars Add tests --- chrome/content/zotero/xpcom/integration.js | 4 +- test/tests/integrationTests.js | 61 ++++++++++++++++++++++ 2 files changed, 63 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js index fba259f002..f42cabb6ac 100644 --- a/chrome/content/zotero/xpcom/integration.js +++ b/chrome/content/zotero/xpcom/integration.js @@ -3085,8 +3085,8 @@ Zotero.Integration.DocumentData = function(string) { Zotero.Integration.DocumentData.prototype.serializeXML = function() { var prefs = ""; for(var pref in this.prefs) { - prefs += ''; + prefs += ``; } return '