http://www.w3.org/2000/xmlns
" как namespace, а при добавлении атрибута использовать 'null' как namespace, т.е. в итоге что-то такое:function SVGanim(href, attributeName, attributeType, from, to, begin, dur, fill, repeatCount, calcMode) {
var elem = document.createElementNS(svgNS, "animate");
elem.setAttributeNS(null, "href", href);
elem.setAttributeNS(null, "attributeName", attributeName);
elem.setAttributeNS(null, "attributeType", attributeType);
elem.setAttributeNS(null, "from", from);
elem.setAttributeNS(null, "to", to);
elem.setAttributeNS(null, "begin", begin);
elem.setAttributeNS(null, "dur", dur);
elem.setAttributeNS(null, "fill", fill);
elem.setAttributeNS(null, "repeatCount", repeatCount);
elem.setAttributeNS(null, "calcMode", calcMode);
return elem;
}