author | Luc Moreau <l.moreau@ecs.soton.ac.uk> |
Fri, 11 May 2012 16:24:07 +0100 | |
changeset 2776 | 12b73670c787 |
parent 2775 | f6fe7835ab1a |
child 2777 | 8856834b7fe0 |
model/prov-n.html |
--- a/model/prov-n.html Fri May 11 16:17:49 2012 +0100 +++ b/model/prov-n.html Fri May 11 16:24:07 2012 +0100 @@ -20,7 +20,8 @@ function insertProductionDefinition(doc, content, name) { var xml=$.parseXML(content); - var segment = $(xml).find('tbody a[name~="' + name + '"]')[0]; + + var segment = $(xml).find('a[name~="' + name + '"]').parents("tbody")[0]; return doc._esc((new XMLSerializer()).serializeToString(segment)); }