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

Reply via email to