Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

jQuery selector fails on nested classes

#33

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.

Reported by fiann · February 10th, 2009 @ 05:13 AM

State: resolved
Milestone: 1.0 Release
Assigned to: Thatcher Thatcher

Activity

  1. Thatcher
    Thatcher
    • 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.

    February 16th, 2009 @ 08:05 AM

  2. Thatcher
    Thatcher

    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

    February 17th, 2009 @ 08:43 PM

  3. Thatcher
    Thatcher
    • State changed from open to resolved

    this is working in our latest trunk

    September 9th, 2009 @ 06:24 PM

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.