Shouldn’t it be `createElementNS("http://www.w3.org/2000/svg", object.nodeName);` for SVG?