aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--google-plus-commando.js4
-rw-r--r--pluginManager.js2
-rw-r--r--walk-input.js2
3 files changed, 4 insertions, 4 deletions
diff --git a/google-plus-commando.js b/google-plus-commando.js
index 1b0440d..31c38f5 100644
--- a/google-plus-commando.js
+++ b/google-plus-commando.js
@@ -655,14 +655,14 @@ let g:gplus_commando_map_menu = "m"
txt = "<br/>\n";
break;
case "img":
- txt = "<img src=" + aNode.src.quote() + " width=\"" + aNode.width + "\" height=\"" + aNode.height + "\"/>";
+ txt = "<img src=" + JSON.stringify(aNode.src) + " width=\"" + aNode.width + "\" height=\"" + aNode.height + "\"/>";
break;
case "p":
txt = nodelist2txt(children, "p", "").join("") + "<br/>\n";
break;
case "a":
if (aNode.hasAttribute("href") && aNode.href.indexOf("http") == 0) {
- txt = "<a href=" + aNode.href.quote() + (aNode.title ? " title=" + aNode.title.quote() : "") + ">" +
+ txt = "<a href=" + JSON.stringify(aNode.href) + (aNode.title ? " title=" + JSON.stringify(aNode.title) : "") + ">" +
nodelist2txt(children, "a", "").join("") +
"</a>";
break;
diff --git a/pluginManager.js b/pluginManager.js
index 26442a3..79fe551 100644
--- a/pluginManager.js
+++ b/pluginManager.js
@@ -359,7 +359,7 @@ Plugin.prototype = { // {{{
file.write(source);
} catch (e){
liberator.log('Could not write to ' + file.path + ': ' + e.message);
- return 'E190: Cannot open ' + file.path.quote() + ' for writing';
+ return 'E190: Cannot open ' + JSON.stringify(file.path) + ' for writing';
}
try {
diff --git a/walk-input.js b/walk-input.js
index ef3db1c..6c10a31 100644
--- a/walk-input.js
+++ b/walk-input.js
@@ -80,7 +80,7 @@ var types = [
"url",
"tel",
"color",
-].map(function(type) "@type=" + type.quote()).join(" or ");
+].map(function(type) "@type=" + JSON.stringify(type)).join(" or ");
var xpath = '//input[(' + types + ' or not(@type)) and not(@disabled)] | //textarea | //*[@contenteditable="true"]';
function isVisible (elem) {