Fix getElementsByTagName[NS] support to match the spec.
Merge pull request #2938 from jgraham/jgraham/getElementsByTagName

Fix getElementsByTagName[NS] support to match the spec; r=Ms2ger