.hasClass(".name") silently dies
|Reported by:||dmethvin||Owned by:||flesler|
If you erroneously use $().hasClass() with a leading dot on the class name, jQuery silently stops executing code in FF3.
The actual problem seems to be in jQuery.filter, which matches the leading ".." in the selector it's given and then tries to look that up in jQuery.expr and gets undefined, but still tries to call it as a function.
This clearly is a user input error case so I wouldn't say the actual return value is critical, but the fact that jQuery dies in an unusual way makes debugging hard.
Change History (7)
comment:1 Changed 9 years ago by
|Cc:||dmethvin flesler added|
|need:||Review → Patch|
|Owner:||set to flesler|
|Status:||new → assigned|