mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-15 04:00:34 +08:00
replace the 'find' way into direct inclusion in svg element
This commit is contained in:
parent
fc8d0dcb06
commit
a2366dc68f
@ -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 = $('<div />').html(svg_html).find('svg');
|
||||
var svg = $('<svg \>').html(svg_html);
|
||||
var svg_area = $('<div />');
|
||||
var width = svg.attr('width');
|
||||
var height = svg.attr('height');
|
||||
|
Loading…
Reference in New Issue
Block a user