Rebuild attributes using setAttributeNS if necessary
Use namespace aware js methods when needed for element/attribute manipulation