Closed
Description
Otherwise, they become very difficult to debug.
See this jsfiddle for an example. Attaching an event handler with an invalid selector div:not
causes an exception to be raised at event time. This makes it very difficult to debug, as the trace of the error will usually only include jquery code.
I suggest jQuery should throw an exception at attach time instead, which makes it fairly easy to detect the faulty code.