Ticket #4323 (closed bug: duplicate)
$('#' + myID) throws an exception in version 1.3.1 and 1.3.2 if myID is a zero length string
|Reported by:||psinkinson||Owned by:||john|
This may seem a little bit odd to be searching for an id-less element, but i found a few places in existing code that were in loops and the id variable had no value. Previos versions returned a jQuery object with a length of zero, but from 1.3.1 an exception is thrown.
[Exception... "'Syntax error, unrecognized expression: #' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "<unknown>" data: no]