[jquery-dev] Re: ATTR-Selector?

2009-01-04 Thread Balazs Endresz
Here it is: http://dev.jquery.com/ticket/3778 On Jan 4, 3:40 pm, "John Resig" wrote: > I will agree that neither of those are ideal - but thankfully they're > both sufficiently obscure enough that they won't cause immediate > problems. > > Could you file a bug on them?http://dev.jquery.com/ > >

[jquery-dev] Re: ATTR-Selector?

2009-01-04 Thread John Resig
I will agree that neither of those are ideal - but thankfully they're both sufficiently obscure enough that they won't cause immediate problems. Could you file a bug on them? http://dev.jquery.com/ Thanks! --John On Sun, Jan 4, 2009 at 9:31 AM, Balazs Endresz wrote: > > After some more test

[jquery-dev] Re: ATTR-Selector?

2009-01-04 Thread Balazs Endresz
After some more testing there seems to be some issues with this approach as it fails if you have a selector like this: input[name=".types["] If the value contains a dot and an opening bracket then the class selector regex will match the string after the dot. Also it won't match .foo in this expre

[jquery-dev] Re: ATTR-Selector?

2009-01-03 Thread John Resig
This should be fixed now. Thanks for the tips, Balazs! http://github.com/jeresig/sizzle/commit/c757d135949d0a4b15a9fd6d729071df1d3ffd5a --John On Sat, Jan 3, 2009 at 10:35 AM, Balazs Endresz wrote: > > Hi, > a couple of months ago I made little patch to Sizzle > http://groups.google.com/group

[jquery-dev] Re: ATTR-Selector?

2009-01-03 Thread Balazs Endresz
Hi, a couple of months ago I made little patch to Sizzle http://groups.google.com/group/jquery-dev/browse_thread/thread/d74e5a88b9649d24 to enable selection by data and css properties inside an attribute selector: http://jsbin.com/otoqo/edit It uses a negative lookahead to prevent other selectors

[jquery-dev] Re: ATTR-Selector?

2009-01-03 Thread John Resig
The primary issue is that Sizzle randomly grabs portions of a selector in a specific order. This helps to improve speed but it harms complex cases like this. I'm working on a patch to resolve it. --John On Sat, Jan 3, 2009 at 12:56 AM, chuyeow wrote: > > Hi Olaf, > > This bug has been reporte

[jquery-dev] Re: ATTR-Selector?

2009-01-02 Thread chuyeow
Hi Olaf, This bug has been reported before but there is no patch for it yet. So far I've been able to narrow it down to selectors with periods in them being incorrectly recognized as a class selector, but do not have enough regex-fu to know how to solve the bug yet. The class selector regex in