In my last post I commented on problems with the jQuery "has attribute" selector in older browsers, specifically IE6 & 7 (and maybe a very old Firefox).
In 1.6.1 the functionality of
attr has been returned to normal, which is good. The "has attribute" selector, unfortunately, is still broken. Run this fiddle in IE6 or 7. (Yeah I know jsFiddle barely works in IE6 and 7, but if you ignore the js errors you can still see the results).
The one that's being found is actually the invalid one ("nohref" is a property, and shouldn't have a value). Here's the fiddle showing this:Example 2: "nohref" - both valid this time
Interestingly, it works sometimes. With "checked", the attribute is properly found either way:Example 3: "checked" -- works!
With "custom" properties it never works, like with "nohref". So anyway, I'm still using the double-selector to properly check for 'has attribute' to be sure: