code: function(type, container, attributes) {
  				var element = _doc.createElementNS("http://www.w3.org/2000/svg", type),
  					reg = /([a-z])([A-Z])/g,
  					p;
  				for (p in attributes) {
  					element.setAttributeNS(null, p.replace(reg, "$1-$2").toLowerCase(), attributes[p]);
  				}
  				container.appendChild(element);
  				return element;
  			}
docs: Safari and Firefox both have some rendering bugs when applying CSS transforms to SVG elements, so default to using the "transform" attribute instead (users can override this).