From 920df48d1da4f9bf33bf1a01c60a2131e589d29c Mon Sep 17 00:00:00 2001 From: aurimasv Date: Sun, 11 Nov 2012 02:21:45 -0600 Subject: [PATCH] Make sure that absolutely all files that are being downloaded/written to are registered and their file names do not change. --- chrome/content/zotero/webpagedump/common.js | 5 +- chrome/content/zotero/webpagedump/domsaver.js | 63 +++++++++++++------ 2 files changed, 46 insertions(+), 22 deletions(-) diff --git a/chrome/content/zotero/webpagedump/common.js b/chrome/content/zotero/webpagedump/common.js index 93eee06b5..f21feda53 100644 --- a/chrome/content/zotero/webpagedump/common.js +++ b/chrome/content/zotero/webpagedump/common.js @@ -435,8 +435,9 @@ var wpdCommon = { nodeToHTMLString: function (aNode) { if (aNode == null) return ""; var tag = "<" + aNode.nodeName.toLowerCase(); - for (var i = 0; i < aNode.attributes.length; i++) - tag += ' ' + aNode.attributes[i].name + '="' + aNode.attributes[i].value + '"'; + for (var i = 0; i < aNode.attributes.length; i++) { + tag += ' ' + aNode.attributes[i].name + '="' + aNode.attributes[i].value + '"'; + } tag += ">\n"; return tag + aNode.innerHTML + "\n"; }, diff --git a/chrome/content/zotero/webpagedump/domsaver.js b/chrome/content/zotero/webpagedump/domsaver.js index 8a6bada42..d93d4243b 100644 --- a/chrome/content/zotero/webpagedump/domsaver.js +++ b/chrome/content/zotero/webpagedump/domsaver.js @@ -85,7 +85,7 @@ var WPD_CRLFBUG = true; // the ConvertToEntities XPCOM function for generating usual // HTML Entities... // (this is precisely not a bug but a concept failure) -var WPD_ENTITYBUG = true; +var WPD_ENTITYBUG = false; // CSSSCROLLBUG: The css "scroll" property of "background" is // loosing the zero vertical position leading to a false @@ -106,7 +106,7 @@ var WPD_CSSBACKGROUNDPOSITIONBUG = true; // leave the doctype at the original position before the // HTML tag and insert the doctype entry a second // time below the tag... -var WPD_DOCTYPEBUG = true; +var WPD_DOCTYPEBUG = false; // JAVASCRIPTSRCBUG: Deleting the "src" attribute together // with the whole