fixing textPath double xlink:href isssue

master
Mark MacKay 2021-07-07 14:24:39 -05:00
parent 501a8c13eb
commit c3ac97f143
1 changed files with 1 additions and 2 deletions

View File

@ -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);