Fixed issue with double xmlns attributes created in IE9 and IE10. Closes #1978.