I have a #tree with many:
<li class="no-child>...</li>
<li>...</li>
That's, there are <li> with class "no-child" and <li> with no class.
In Prototype 1.5.0 I use the following line to take all the li elements without class "no-child" inside the #tree div:
$$('#tree li[class!="no-child"]')
Now I've upgraded to 1.5.1 and it doesn't work.
I've investigated and it occurs because <li> elements without class="no-child" they have NO class. If for example I put:
<li class="no-child>...</li>
<li>...</li>
<li class="anything">...</li>
then my code:
$$('#tree li[class!="no-child"]')
JUST selects the <li> with class="anything". That is: if you want to select all the elements with an attribute different of XXXX then those elements NEED to have that attribute with a different value, but those elements with no value for that attribute will not be selected.
I think this is a big bug.