Performance of custom attribute selectors

Performance of custom attribute selectors

Hi all,
Can anyone explain the performance impact of using custom attribute selectors?
e.g.,  For the markup: <input type="text" itemCode="item1" value="20"/>,
I'm using selectors like: $('input[itemCode="item1"]');

There are a number of dynamically added controls, which store few id's in their custom attributes. I have to loop through and select controls based on these custom attributes. However, when I am using these selectors, I'm getting "long running script" dialogue in IE8. It works fine in Firefox 3.5. Is there severe performance penalty using custom attributes?


Krishna,
http://www.novogeek.com