This seems to be fixed in the latest version (rev 6078) that will become 1.3. Can someone confirm ?
On 9 jan, 18:02, "John Resig" <[email protected]> wrote: > Thanks for spotting the ticket - probably won't be able to get to it > until after 1.3, but thanks for your test case. > > --John > > On Fri, Jan 9, 2009 at 11:49 AM, Eridius <[email protected]> wrote: > > > Right now i am not able to post anything up to the internet but here is a > > simple example. it seems to be a more localized issues than what i > > previously thought. > > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > > <html xmlns="http://www.w3.org/1999/xhtml"> > > <head> > > <!-- this is the 1.2.6 version --> > > <script type="text/javascript" src="./jquery.js"></script> > > <title>name="id" bug</title> > > </head> > > <body> > > <form id="test_form" action="./index.html"> > > <div> > > <input type="hidden" name="id" /> > > </div> > > # test_link > > # test_link2 > > </form> > > <div id="selector1">test</div> > > <div id="selector2">test</div> > > > <script type="text/javascript"> > > $(document).ready(function() > > { > > alert($('[id^=selector]').length); > > }); > > </script> > > </body> > > </html> > > > Now in firefox when i run this, firebug tells me there was a javascript > > error(but firebug does not show it directly for whatever reason) so in the > > firebug console when i try to run alert($('[id^=selector]').length); i get > > the following error: TypeError: z.indexOf is not a function source. This > > error however only shows up if there is a form element(or probably any > > element) with a name attribute that has a value of id. If there is anything > > else you need to reproduce this bug, just let me know. > > > Also tickethttp://dev.jquery.com/ticket/2990seems to be what i am > > experiencing but there has been no activity on that ticket for some time > > now. > > > John Resig wrote: > > >> Can you provide an example? Kind of hard to determine what the problem > >> is from your description. > > >> --John > > >> On Fri, Jan 9, 2009 at 10:24 AM, Eridius <[email protected]> wrote: > > >>> Supposedly this issues was already fixed however with version 1.2.6, if i > >>> have a form element with the name of id, none of my jquery code executes. > >>> I > >>> have tested this in FF3, IE 6/7, Safari and and fails in all browsers. > >>> Is > >>> this issue known that it still exists? > >>> -- > >>> View this message in context: > >>>http://www.nabble.com/name%3D%22id%27-bug-tp21374362s27240p21374362.html > >>> Sent from the jQuery Dev List mailing list archive at Nabble.com. > > > -- > > View this message in > > context:http://www.nabble.com/name%3D%22id%27-bug-tp21374362s27240p21375967.html > > Sent from the jQuery Dev List mailing list archive at Nabble.com. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en -~----------~----~----~----~------~----~------~--~---
