preserve namespaces of attributes passed to element functions