new → closed
Agreed on the markup part, since links can't be disabled but form elements can:
The test in Sizzle looks for a
property (not attribute):
return elem.disabled === true;
I suspect IE8 is applying their "convert property to attribute" logic for all elements rather than just form input elements, and Firefox is doing it the right way.
The jQuery docs show examples using the selector
If you use it that way (only testing form input elements or not putting invalid attributes on other elements) it works fine. The issue here is what should happen for the case of elements that have a
attribute when they shouldn't, but that seems like undefined behavior territory to me.