Re: [whatwg/dom] Having getElementsByTagName match on localName is not "web"-compatible for IE and Firefox (#143)

For what it's worth, I've profiled both versions in Gecko.  There is no measurable slowdown from checking whether there is a prefix and in the overwhelmingly common case when there isn't one matching against the qualified name...  So I don't buy the performance argument.  I can sort of buy the compat argument, though note that this has a performance cost too: having to check for ':' in the passed-in string, even when the list is already cached and there isn't much work to be done other than just getting it out of the cache.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/143#issuecomment-239339644

Received on Friday, 12 August 2016 01:23:50 UTC