diff options
author | Jagua | 2015-01-24 15:30:08 +0900 |
---|---|---|
committer | Jagua | 2015-01-24 15:30:08 +0900 |
commit | 64e8cacad92e2e55d16fe90e37832181cb49ec92 (patch) | |
tree | c3f00228df9c89be6a197279c7cc4a3836b58488 /google-plus-commando.js | |
parent | b4cbb0c3d7b056057c55a313b1aaff0fc8e9e6de (diff) | |
parent | feb5a9da3fd9a50106a5fb5df76b6cd48bbb238a (diff) | |
download | vimperator-plugins-64e8cacad92e2e55d16fe90e37832181cb49ec92.tar.bz2 |
Merge pull request #74 from eagletmt/string-quote
String.prototype.quote() has been removed in Firefox 37
Diffstat (limited to 'google-plus-commando.js')
-rw-r--r-- | google-plus-commando.js | 4 |
1 files changed, 2 insertions, 2 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; |