From a2366dc68fbcafa51cd714e40aadd8176be7ea47 Mon Sep 17 00:00:00 2001 From: Pierre Gerold Date: Fri, 5 Feb 2016 08:21:48 +0100 Subject: [PATCH] replace the 'find' way into direct inclusion in svg element --- notebook/static/notebook/js/outputarea.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notebook/static/notebook/js/outputarea.js b/notebook/static/notebook/js/outputarea.js index 161efc115..c3a42e21a 100644 --- a/notebook/static/notebook/js/outputarea.js +++ b/notebook/static/notebook/js/outputarea.js @@ -651,7 +651,7 @@ define([ var toinsert = this.create_output_subarea(md, "output_svg", type); // Get the svg element from within the HTML. - var svg = $('
').html(svg_html).find('svg'); + var svg = $('').html(svg_html); var svg_area = $('
'); var width = svg.attr('width'); var height = svg.attr('height');