diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index a8b442e4..8d29ed71 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -989,7 +989,7 @@ function BatchCommand(text) { "xmlns:se": se_ns, "xmlns:xlink": xlinkns }).appendTo(svgroot); - if (randomize_ids) svgContent.setAttributeNS(se_ns, nonce); + if (randomize_ids) svgcontent.setAttributeNS(se_ns, 'se:nonce', nonce); var convertToNum, convertToUnit, setUnitAttr; @@ -5629,7 +5629,7 @@ function BatchCommand(text) { nonce = n; if (extensions["Arrows"]) call("setarrownonce", n) ; } else if (randomize_ids) { - svgcontent.setAttributeNS(xmlnsns, 'xml:se', se_ns); + svgcontent.setAttributeNS(xmlnsns, 'xmlns:se', se_ns); svgcontent.setAttributeNS(se_ns, 'se:nonce', nonce); if (extensions["Arrows"]) call("setarrownonce", nonce) ; }