Javascript 拉斐尔;Href目标

Javascript 拉斐尔;Href目标,javascript,svg,raphael,Javascript,Svg,Raphael,我有链接,在我的图形中使用href和目标参数作为文本完成。 我可以看到目标存在,但单击链接后,它仍会在当前窗口中打开,尽管目标设置为“\u blank”。我的浏览器是最新的Chrome 23.0 以下是我在页面中看到的内容: <a style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);" xlink:href="http://www.google.com" xlink:target="_blank"> <text style=

我有链接,在我的图形中使用href和目标参数作为文本完成。 我可以看到目标存在,但单击链接后,它仍会在当前窗口中打开,尽管目标设置为“\u blank”。我的浏览器是最新的Chrome 23.0 以下是我在页面中看到的内容:

<a style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);" xlink:href="http://www.google.com" xlink:target="_blank">
<text style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0); text-anchor: start; font-style: normal; font-variant: normal; font-weight: normal; font-size: 14pt; line-height: normal; font-family: Arial; opacity: 1;" x="275.8000030517578" y="157.31666564941406" text-anchor="start" font="14pt &quot;Arial&quot;" stroke="none" fill="#0070c0" opacity="1">
<tspan style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);">
This is the link to Google
</tspan></text></a>


虽然有一个xlink:show属性,但它只是(没有xlink)。

也许我应该添加xlink:show=“new”而不是target。当我在chrome的开发者工具中检查源代码时,它显示为正常的a-href-target,但当我选择Edit HTML时,它显示为xlink:target听起来像chrome中的一个bug,也许你应该报告它。它在Opera或Firefox中是否能像您期望的那样工作?只要删除xlink:就可以在Firefox上工作。也许试试安全模式?