From 4600cc3f9c55a0138c1af656e83605de3109a9cd Mon Sep 17 00:00:00 2001
From: anekos
Date: Sat, 25 May 2013 12:11:20 +0900
Subject: Kill XML
---
twittperator/twsidebar.tw | 5 -----
1 file changed, 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``;
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(
'' + tweetXml.toString() + "",
"application/xml");
--
cgit v1.2.3