From c3ac97f143b2335b23e3439ececdaaeb7c6cde8b Mon Sep 17 00:00:00 2001 From: Mark MacKay Date: Wed, 7 Jul 2021 14:24:39 -0500 Subject: [PATCH] fixing textPath double xlink:href isssue --- src/js/svgcanvas.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/js/svgcanvas.js b/src/js/svgcanvas.js index 3a728e6..baa7d3f 100644 --- a/src/js/svgcanvas.js +++ b/src/js/svgcanvas.js @@ -7526,8 +7526,7 @@ this.textPath = function(){ text.setAttribute("x", 0); text.setAttribute("y", 0); textPath.setAttributeNS(xmlns, "xml:space", "default"); - textPath.setAttribute("xlink:href", "#" + path.id); - textPath.setAttribute("href", "#" + path.id); + textPath.setAttributeNS(xlinkns,'xlink:href', "#" + path.id); const offset = (path.getTotalLength()/2).toFixed(0) textPath.setAttribute("startOffset", offset); text.appendChild(textPath);