Fix localName for IE9.