added support for creating elements on the fly with svg namespaces