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 Sizzle: /\.((?:[\w\u0128-\uFFFF_-]|\\.)+)/

Running this regex against "a[href$='.jpg']" (or any similar non-class
selector with a period in them):
  "a[href$='.jpg/']".match(/\.((?:[\w\u0128-\uFFFF_-]|\\.)+)/)
  => returns matches = [.jpg, jpg] which is wrong

Hopefully this helps anyone also looking at the bug.

Cheers,
Chu Yeow


On Dec 30 2008, 8:19 pm, Olaf <olaf.bo...@t-online.de> wrote:
> Hi, I test 1.3.b1 and this Selector work any more:
>
> <script type="text/javascript">
> //<![CDATA[
> $(document).ready(function() {
> // no more with 1.3b1
> //  $("#content a[href$='.jpg']").lightBox();
>   $("#content a").lightBox();});
>
>   //]]>
> </script>
>
> What is to do? Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to jquery-dev@googlegroups.com
To unsubscribe from this group, send email to 
jquery-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to