This commit is contained in:
Nicolas Stepien 2012-05-14 18:50:28 +02:00
parent 216a05f9b4
commit 90b495c82c
2 changed files with 4 additions and 4 deletions

View File

@ -778,7 +778,7 @@
} }
doc = d.implementation.createHTMLDocument(''); doc = d.implementation.createHTMLDocument('');
doc.documentElement.innerHTML = req.response; doc.documentElement.innerHTML = req.response;
node = d.importNode(doc.getElementById("m" + replyID)); node = d.importNode(doc.getElementById("m" + replyID), true);
quotes = node.getElementsByClassName('quotelink'); quotes = node.getElementsByClassName('quotelink');
for (_i = 0, _len = quotes.length; _i < _len; _i++) { for (_i = 0, _len = quotes.length; _i < _len; _i++) {
quote = quotes[_i]; quote = quotes[_i];
@ -890,7 +890,7 @@
_ref = $$('.replyContainer', doc); _ref = $$('.replyContainer', doc);
for (_i = 0, _len = _ref.length; _i < _len; _i++) { for (_i = 0, _len = _ref.length; _i < _len; _i++) {
reply = _ref[_i]; reply = _ref[_i];
reply = d.importNode(reply); reply = d.importNode(reply, true);
_ref1 = $$('.quotelink', reply); _ref1 = $$('.quotelink', reply);
for (_j = 0, _len1 = _ref1.length; _j < _len1; _j++) { for (_j = 0, _len1 = _ref1.length; _j < _len1; _j++) {
quote = _ref1[_j]; quote = _ref1[_j];

View File

@ -619,7 +619,7 @@ ExpandComment =
# Import the node to fix quote.hashes # Import the node to fix quote.hashes
# as they're empty when in a different document. # as they're empty when in a different document.
node = d.importNode doc.getElementById "m#{replyID}" node = d.importNode doc.getElementById("m#{replyID}"), true
quotes = node.getElementsByClassName 'quotelink' quotes = node.getElementsByClassName 'quotelink'
for quote in quotes for quote in quotes
@ -697,7 +697,7 @@ ExpandThread =
threadID = thread.id[1..] threadID = thread.id[1..]
nodes = [] nodes = []
for reply in $$ '.replyContainer', doc for reply in $$ '.replyContainer', doc
reply = d.importNode reply reply = d.importNode reply, true
for quote in $$ '.quotelink', reply for quote in $$ '.quotelink', reply
href = quote.getAttribute 'href' href = quote.getAttribute 'href'
continue if href[0] is '/' # Cross-board quote continue if href[0] is '/' # Cross-board quote