#33 ✓resolved
fiann

jQuery selector fails on nested classes

Reported by fiann | February 10th, 2009 @ 05:13 AM | in 1.0 Release

Where an element with a certain class name is nested inside an ancestor element with the same class, the jQuery selector finds this correctly in the browser (tested in Firefox 3.0) but not in env.js.

For example:

<p id="example1">
  <span class="value">This is the value, which should 
    <span class="value">only appear once. </span></span>
</p>

The jQuery selector $(".value .value") finds only the inner node in the browser, but matches 2 nodes under env.js.

Comments and changes to this ticket

  • Thatcher

    Thatcher February 16th, 2009 @ 08:05 AM

    • Milestone set to 1.0 Release
    • Tag set to class, jquery, sector, tests, unit
    • State changed from “new” to “open”
    • Assigned user set to “Thatcher”

    thanks for finding this fiann. Hopefully the new build/test scripts will alleviate the general issues you had to change.

    I'm looking into the selector issue today.

  • Thatcher

    Thatcher February 17th, 2009 @ 08:43 PM

    Hey fiann still working on this. If you still have issues loading env.js create a new ticket if possible. I'm digging into selector issues and there are several other issues that I'm hoping will resolve this if fixed.

    If you have time please retry your test case with the latest source and just post a thumbs up or thumbs down.

    Thanks again for finding this issue.

    Thatcher

  • Thatcher

    Thatcher September 9th, 2009 @ 06:24 PM

    • State changed from “open” to “resolved”

    this is working in our latest trunk

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

a javascript browser environment

People watching this ticket

Pages