SVG Namespace prefix xlink for href on textpath is not defined

前端 未结 2 1543
情深已故
情深已故 2021-01-17 07:54

So I\'m trying to make a simple textpath .svg that would be a vertical line with some text. The problem I am getting is that the tags seem to throw everything off. I think

2条回答
  •  不要未来只要你来
    2021-01-17 08:35

    Your sample will work fine inlined in a browser, because the browser knows about the xlink namespace.

    If your SVG is an external file, then more strict XML parsing is performed and all namespaces used have to be defined.

    All you need to do is add a definition for the xlink namespace to your outermost element.

    
    

提交回复
热议问题