On Feb 5, 4:20 am, George Adamson <[email protected]>
wrote:
> I'm assuming tagName always returns the tag in upper case but judging
> by jQuery's use of /i on the regex maybe that is not the case for all
> browsers.
>
> If converting to upper case is necessary then it does slow it down but
> it's still faster than regex.
Or you can just have both lower- and upper-cased keys for best
performance:
var hTable = { "body": 1, "html": 1, "BODY": 1, "HTML": 1 };
--
kangax
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---