The Line for adding is based on your error line in js file. In my case: it is the line
_init: function(svgDocument){
arguments.callee.$._init.apply(this, arguments);
var svgNode = svgDocument.getElementsByTagName("g")[0]; //outer most g node
// set all required attributes
//—> ADD HERE before error line
if (!Document.prototype.createAttributeNS) {
Document.prototype.createAttributeNS = function(namespaceURI, qualifiedName) {
var dummy = this.createElement('dummy');
dummy.setAttributeNS(namespaceURI, qualifiedName, '');
var attr = dummy.attributes[0];
dummy.removeAttributeNode(attr);
return attr;
};
}
if (!Element.prototype.setAttributeNodeNS) {
Element.prototype.setAttributeNodeNS = Element.prototype.setAttributeNode;
}
// —-> END ADD HERE
var attributeTitle = svgDocument.ownerDocument.createAttributeNS(null, "title"); // <—– ERROR HERE (createAttributeNS)
attributeTitle.nodeValue = this.getStencil().title();
svgNode.setAttributeNode(attributeTitle);