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

View File

@ -619,7 +619,7 @@ ExpandComment =
# Import the node to fix quote.hashes
# 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'
for quote in quotes
@ -697,7 +697,7 @@ ExpandThread =
threadID = thread.id[1..]
nodes = []
for reply in $$ '.replyContainer', doc
reply = d.importNode reply
reply = d.importNode reply, true
for quote in $$ '.quotelink', reply
href = quote.getAttribute 'href'
continue if href[0] is '/' # Cross-board quote