Fix getElementsByTagName[NS] support to match the spec.