'ancestor::a' -> 'parent::a'

This commit is contained in:
Nicolas Stepien 2012-03-13 16:14:31 +01:00
parent 9c00ad71a4
commit 0d9988abbb
2 changed files with 2 additions and 2 deletions

View File

@ -3344,7 +3344,7 @@
node: function(post) {
var board, className, data, href, i, id, index, m, node, nodes, quote, quotes, snapshot, text, _i, _len, _ref;
if (post["class"] === 'inline') return;
snapshot = d.evaluate('.//text()[not(ancestor::a)]', post.el.lastChild, null, 6, null);
snapshot = d.evaluate('.//text()[not(parent::a)]', post.el.lastChild, null, 6, null);
for (i = 0, _ref = snapshot.snapshotLength; 0 <= _ref ? i < _ref : i > _ref; 0 <= _ref ? i++ : i--) {
node = snapshot.snapshotItem(i);
data = node.data;

View File

@ -2780,7 +2780,7 @@ Quotify =
# XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE is 6
# Get all the text nodes that are not inside an anchor.
snapshot = d.evaluate './/text()[not(ancestor::a)]', post.el.lastChild, null, 6, null
snapshot = d.evaluate './/text()[not(parent::a)]', post.el.lastChild, null, 6, null
for i in [0...snapshot.snapshotLength]
node = snapshot.snapshotItem i