Fix namespace problems with Element.getTagName()