From d0cdde9a42519e800e19fef79a9e07779a580932 2013-11-11 23:00:34 From: Paul Ivanov Date: 2013-11-11 23:00:34 Subject: [PATCH] Merge pull request #4250 from pablooliveira/wrap-svg-in-iframes outputarea.js: Wrap inline SVGs inside an iframe --- diff --git a/IPython/html/static/notebook/js/outputarea.js b/IPython/html/static/notebook/js/outputarea.js index fe6422c..12f219f 100644 --- a/IPython/html/static/notebook/js/outputarea.js +++ b/IPython/html/static/notebook/js/outputarea.js @@ -326,7 +326,51 @@ var IPython = (function (IPython) { } return oa; }; - + + + OutputArea.prototype.create_output_subarea = function(md, classes) { + var subarea = $('
').addClass('output_subarea').addClass(classes); + if (md['isolated']) { + // Create an iframe to isolate the subarea from the rest of the + // document + var iframe = $('