author | Luc Moreau <l.moreau@ecs.soton.ac.uk> |
Fri, 11 May 2012 13:01:46 +0100 | |
changeset 2772 | 986a29eb6c16 |
parent 2771 | d82710d62f86 |
child 2773 | e33d5f5e5f1f |
model/prov-n.html |
--- a/model/prov-n.html Fri May 11 13:01:30 2012 +0100 +++ b/model/prov-n.html Fri May 11 13:01:46 2012 +0100 @@ -20,7 +20,7 @@ function insertProductionDefinition(doc, content, name) { var xml=$.parseXML(content); - var segment = $(xml).find('a[name~="' + name + '"]').parent()[0]; + var segment = $(xml).find('a[name~="' + name + '"]')[0].parent(); return doc._esc((new XMLSerializer()).serializeToString(segment)); }