aboutsummaryrefslogtreecommitdiffstats
path: root/twittperator
diff options
context:
space:
mode:
authoranekos2013-05-25 12:11:20 +0900
committeranekos2013-05-25 12:11:20 +0900
commit4600cc3f9c55a0138c1af656e83605de3109a9cd (patch)
treed096d2b018461b607955e1531d4b77a12cb524ef /twittperator
parent9eda8529ba94a0e2b40d56a70502038026ad7504 (diff)
downloadvimperator-plugins-4600cc3f9c55a0138c1af656e83605de3109a9cd.tar.bz2
Kill XML
Diffstat (limited to 'twittperator')
-rw-r--r--twittperator/twsidebar.tw5
1 files changed, 0 insertions, 5 deletions
diff --git a/twittperator/twsidebar.tw b/twittperator/twsidebar.tw
index d8c2a79..f31fed4 100644
--- a/twittperator/twsidebar.tw
+++ b/twittperator/twsidebar.tw
@@ -83,7 +83,6 @@ liberator.modules.TWAnekoSB = ANekoSB = (function () {
function formatText (str) { // {{{
str = str.trim();
let reg = /https?:\/\/[^\s]+|[#@]\w+/g;
- XML.ignoreWhitespace = false;
let m, i = 0, buf = "", x = xml`<xhtml:p class="twlist-text" xmlns:xhtml="http://www.w3.org/1999/xhtml"/>`;
while((m=reg.exec(str))){
buf = str.substring(i, m.index);
@@ -120,8 +119,6 @@ liberator.modules.TWAnekoSB = ANekoSB = (function () {
let appendTweet = (function () { // {{{
function messageToXML (t) {
- XML.prettyPrinting = true;
- XML.ignoreWhitespace = true;
let tweetXml;
let sbWidth = getSidebarWindow().document.width;
let richlistitemClasses = [className('tweet-panel'), className('tweet-' + t.type)];
@@ -157,8 +154,6 @@ liberator.modules.TWAnekoSB = ANekoSB = (function () {
}
function xmlToDom(tweetXml, xmlns) {
- XML.prettyPrinting = true;
- XML.ignoreWhitespace = true;
var doc = (new DOMParser).parseFromString(
'<root xmlns="' + xmlns + '">' + tweetXml.toString() + "</root>",
"application/xml");