[jQuery] Fwd : simple selector with ID doesn't work anymore

[jQuery] Fwd : simple selector with ID doesn't work anymore


<font size=2 face="sans-serif">Hi,</font>
<font size=2 face="sans-serif">I've been looking for a solution regarding
my problem... first, it appears I hadn't the right files when doing my
tests with different versions. So it works fine  with the packed version
1.0.4 . But when I replace it with the packed v1.1.1, the code </font>
<font size=2 face="sans-serif">        </font><font size=2 face="Courier New">alert(</font><font size=2 color=#8100ff face="Courier New">'
div : '</font><font size=2 face="Courier New">+$(</font><font size=2 color=#8100ff face="Courier New">"div#tab_0"</font><font size=2 face="Courier New">).length+</font><font size=2 color=#8100ff face="Courier New">'-
li : '</font><font size=2 face="Courier New">+$(</font><font size=2 color=#8100ff face="Courier New">"li#tab_0"</font><font size=2 face="Courier New">).length);</font>
<font size=2 face="Courier New">doesn't produce the same result.</font>
<font size=2 face="Courier New">with v1.0.4 : "div : 1  
     - li : 1"</font>
<font size=2 face="Courier New">with v1.1.1 : "div : 0 - li :
1"</font>
<font size=2 face="Courier New">The generated HTML code parsed by Jquery
is something like this  : </font>
<font size=3><tt><div id="tabview" style="width:
99%;">
</tt></font>
<font size=3><tt>    <ul>
     <li class="" id="tab_0"><div
onclick="showTab(0,'false');" style="cursor: pointer;">Great
Clients</div></li>
     <li class="current" id="tab_1"><div
onclick="showTab(1,'false');" style="cursor: pointer;">Good
Clients</div></li>
     <li class="" id="tab_2"><div
onclick="showTab(2,'false');" style="cursor: pointer;">Bad
Clients</div></li>
   </ul>
   <span id="AA_default_loading_div" class="loadingDiv"
style="display: none;">&nbsp;&nbsp;loading...&nbsp;&nbsp;</span>
</div>
</tt></font>
<font size=3><tt>
<div id="tab_0" style="display: block; clear: left; width:
99%;"></tt></font>
<font size=2 face="Courier New">        div0</font>
<font size=2 face="Courier New"></div></font>
<font size=3><tt><div id="tab_1" style="display:
block; clear: left; width: 99%;"></tt></font>
<font size=2 face="Courier New">        div1</font>
<font size=2 face="Courier New"></div></font>
<font size=2 face="Courier New">I really don't understand why the li
element matches, but not the div element. Can somebody help me please ?
</font>
<font size=2 face="Courier New">Thanks in advance</font><font size=2 face="sans-serif">
--
Vincent FUCHS
</font>
<font size=1 color=#800080 face="sans-serif">----- Forwarded by Vincent
FUCHS/fr/socgen on 24/01/2007 16:27 -----</font>
<table width=100%>
<tr valign=top>
<td width=40% rowspan=2><font size=1 face="sans-serif"><b>Vincent FUCHS/fr/socgen</b>
</font>

<font size=1 face="sans-serif">24/01/2007 10:43</font>
<td width=59%>
<tr valign=top>
<td>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">discuss@jquery.com</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">simple selector with ID doesn't work
anymore</font></table>
<table>
<tr valign=top>
<td>
<td></table>
</table>
<font size=2 face="sans-serif">Hi,</font>
<font size=2 face="sans-serif">I've just upgraded from 1.0.3 to 1.1.1
and some selectors don't work anymore.</font>
<font size=2 face="sans-serif">A simple selector like $("div#tab_1")
cant' find the div <div id="tab_1"> in v1.1.1 while there
was no problem with v1.0.3 .</font>
<font size=2 face="sans-serif">So unless the selecting philosophy has
greatly changed between these two versions, I guess this is a pretty important
bug.</font>
<font size=2 face="sans-serif">It seems to be OK on 1.0.4 though, but
I have a "$(document).ready is not a function" error.</font>
<font size=2 face="sans-serif">Can somebody tell me if I'm wrong or
if it's a bug ? </font>
<font size=2 face="sans-serif">Thanks in advance  </font>
<font size=2 face="sans-serif">
--
Vincent FUCHS
</font><pre>*************************************************************************
This message and any attachments (the "message") are confidential and intended solely for the addressee(s).
Any unauthorised use or dissemination is prohibited. E-mails are susceptible to alteration.
Neither SOCIETE GENERALE nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or
falsified.
************
Ce message et toutes les pieces jointes (ci-apres le "message") sont confidentiels et etablis a l'intention exclusive de ses
destinataires. Toute utilisation ou diffusion non autorisee est interdite. Tout message electronique est susceptible d'alteration.
La SOCIETE GENERALE et ses filiales declinent toute responsabilite au titre de ce message s'il a ete altere, deforme ou falsifie.
*************************************************************************
</pre>_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/