Implement Element.localName.(fixes #2188)

see #2188