> The current solution didn't fix the bug for all queries and all browsers.
> I found this way to solve it with IE (6 and 7b2) for queries like $('#myform'):
> '#': "a.getAttribute('id') == m",
> '#': "a.attributes['id'].nodeValue == m",
> on line 414 (from current http://jquery.com/src/dev/sane/)
> It works with FF 1.5 too. I don't know for Safari, Opera and other
> browsers but you can use this test page:
> http://fmarcia.info/jquery/nameandid/test.html >
> For queries like $("form[@id='myform']"), you'll have to modified the
> return value of $.attr. But any modification will imply a lot of tests
> because $.attr is heavily used in jquery.
> Happy debugging,