Skip to main content

Bug Tracker

Side navigation

#13003 closed bug (notabug)

Opened December 05, 2012 07:55AM UTC

Closed December 05, 2012 01:41PM UTC

Error in Selector raises exception $('$something')

Reported by: niyazpk@gmail.com Owned by:
Priority: undecided Milestone: None
Component: selector Version: 1.8.3
Keywords: Cc:
Blocked by: Blocking:
Description

jQuery is raising an error when using selectors which say $('$something'), instead of $('#something').

I know in this case the code itself is broken, but I am wondering whether jQuery is supposed to raise an error in this case or not.

jsFiddle: http://jsfiddle.net/xbhM4/

Attachments (0)
Change History (1)

Changed December 05, 2012 01:41PM UTC by gibson042 comment:1

component: unfiledselector
resolution: → notabug
status: newclosed

jQuery intentionally raises exceptions on invalid selectors to make it finding and correcting broken code easier.