Reimplement getElementsByTagName