Huh, that's an odd one - could you file a ticket, please?
http://dev.jquery.com/

I'll check up on it and get it in to 1.3.1.

--John



On Tue, Jan 13, 2009 at 9:04 PM, Adam Fisk <adamf...@gmail.com> wrote:
>
> I'm seeing very odd behavior in Safari with selecting class names that
> include upper case characters.  I just filed 
> http://dev.jquery.com/ticket/3840,
> but here's the deal in the test code below:  the selector for $
> ("#ALLCAPS") works fine, but $(".ALLCAPS") returns nothing.  This is
> with Safari Version 3.1.2 (5525.20.1).
>
> Everything works fine in FireFox, and this worked fine in 1.2.6.  It
> appears a single capital letter in a class name triggers this
> behavior.  Clearly a HUGE bug unless I'm missing something.
>
> -Adam
>
> <html>
>    <body>
>        <div id="ALLCAPS"></div>
>        <div class="ALLCAPS"></div>
>        <div class="ALLCAPS"></div>
>
>        <!--
>        <script type="text/javascript" src="http://ajax.googleapis.com/
> ajax/libs/jquery/1.2.6/jquery.min.js"></script>
>        -->
>        <script type="text/javascript" src="http://code.jquery.com/
> jquery-1.3rc2.js"></script>
>
>        <script type="text/javascript">
>            $(document).ready(function() {
>               var numIds = $("#ALLCAPS").length;
>               if (numIds !== 1)
>                   {
>                   alert ("expected 1 elements but found: "+numIds);
>                   }
>
>               var numClasses = $(".ALLCAPS").length;
>
>               if (numClasses !== 2)
>                   {
>                   alert ("expected 2 elements but found:
> "+numClasses);
>                   }
>            });
>        </script>
>    </body>
> </html>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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