Bug Tracker

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#3764 closed bug (invalid)

Possible $() Bug

Reported by: andreyavram Owned by:
Priority: major Milestone: 1.3
Component: unfiled Version: 1.2.6
Keywords: Cc:
Blocked by: Blocking:


Hi, While developing an app I've tried select a dom element using $ function. The problem is that Jquery seems not to be able to handle long ID-s, if I use aaa=document.getElementById('Q29sZHBsYXkgLSBUaGUgU2NpZW50aXN0fHxodHRwOi8vd3d3LnlvdXR1YmUuY29tL3dhdGNoP3Y9VjNLZDdJR1B5ZWd8fHY=').innerHTML; it works fine and I get the text inside, but if I use $('#Q29sZHBsYXkgLSBUaGUgU2NpZW50aXN0fHxodHRwOi8vd3d3LnlvdXR1YmUuY29tL3dhdGNoP3Y9VjNLZDdJR1B5ZWd8fHY=').remove(); (or anything else instead of remove)it doesn't work, JQuery returns in Firebug " Object length=0 prevObject=Object jquery=1.2.6 ". I hope it's not me doing somethig wrong... By the way I wish you a Happy New Year and keep up the good job!!

Change History (2)

comment:1 Changed 14 years ago by davidserduke

Resolution: invalid
Status: newclosed

The problem you are having appears to be because of the '=' sign at the end of your id. That is an illegal character in an id. While it may work at times there is no guarentee and should be expected to work with jquery.


comment:2 Changed 14 years ago by davidserduke

Rather it should NOT be expected to work with jquery.

Note: See TracTickets for help on using tickets.