提交 c981161b 编写于 作者: T tijsrademakers

Fix chrome issue

上级 e4aeb778
......@@ -567,11 +567,11 @@ ORYX.Core.Node = {
var svgNode = svgDocument.getElementsByTagName("g")[0]; //outer most g node
// set all required attributes
var attributeTitle = svgDocument.ownerDocument.createAttributeNS(null, "title");
var attributeTitle = svgDocument.ownerDocument.createAttribute("title");
attributeTitle.nodeValue = this.getStencil().title();
svgNode.setAttributeNode(attributeTitle);
var attributeId = svgDocument.ownerDocument.createAttributeNS(null, "id");
var attributeId = svgDocument.ownerDocument.createAttribute("id");
attributeId.nodeValue = this.id;
svgNode.setAttributeNode(attributeId);
......
......@@ -15496,11 +15496,11 @@ ORYX.Core.Node = {
var svgNode = svgDocument.getElementsByTagName("g")[0]; //outer most g node
// set all required attributes
var attributeTitle = svgDocument.ownerDocument.createAttributeNS(null, "title");
var attributeTitle = svgDocument.ownerDocument.createAttribute("title");
attributeTitle.nodeValue = this.getStencil().title();
svgNode.setAttributeNode(attributeTitle);
var attributeId = svgDocument.ownerDocument.createAttributeNS(null, "id");
var attributeId = svgDocument.ownerDocument.createAttribute("id");
attributeId.nodeValue = this.id;
svgNode.setAttributeNode(attributeId);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册