There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I know this wasn't introduced by your change but what is the reason to try querySelectorAll as a fallback to getElementsByTagName? In which case getElementsByTagName is not supported and querySelectorAll is?
Sorry, something went wrong.
getElementsByTagName is not implemented in documentFragment but qSA is
Thank you for the quick response! That's terrible... why did they do this? :/ oh well...
See the WHATWG thread starting here.
For anyone wanting to see that WHATWG thread, the URL is dead, here is a one that works: https://lists.w3.org/Archives/Public/public-whatwg-archive/2013Jun/0207.html