way slower does not match with my tests but you are right, I forgot the point before the nodeName. Anyway, was a "plus" test, I already said it is slower than the hash check ;-)
On Thu, Feb 5, 2009 at 7:03 PM, Már Örlygsson <[email protected]>wrote: > > > > ~"BODY.HEAD.WHATEVER".indexOf(nodeName) could be even faster (core > static > > To elminate false positives, you'll have to pad the tagName with > delmimeters, like so: > > ~".body.head.whatever.".indexOf('.'+nodeName.toLowerCase()+'.') > > ...and the last time I benchmarked, this whole thing was *way* slower > than a static RegExp. > > > > -- > Már Örlygsson > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en -~----------~----~----~----~------~----~------~--~---
