Add link support to mediawiki grammer. Fix a bug in rr.Node()

This commit is contained in:
Ian Gulliver
2014-06-30 21:12:12 -07:00
parent 1586375bba
commit 7affa466d4
3 changed files with 33 additions and 3 deletions

View File

@@ -304,7 +304,7 @@ rr.Node_.prototype.match = function(context) {
var node = document.createElement(this.name_);
var nodes = next['value']['nodes'];
for (var i = 0; i < nodes.length; i++) {
node.appendChild(nodes[i]);
node.appendChild(nodes[i].cloneNode(true));
}
node.normalize();
return {