Bug Tracker

Modify

Ticket #9017 (closed bug: worksforme)

Opened 2 years ago

Last modified 2 years ago

Chrome Console Nested Filters Issue

Reported by: johnfarrar@… Owned by: johnfarrar@…
Priority: low Milestone: 1.next
Component: selector Version: 1.5.2
Keywords: Cc:
Blocking: Blocked by:

Description

When I try and use nested filters in a CSS style selector in Chrome on my windows and my mac it works unless I run it from the console. Tried FireBug Lite and had the same issue. Sometimes it would run once in fact but never twice.

Change History

comment:1 Changed 2 years ago by johnfarrar@…

<ul>

<li class="lvl1">First Item</li> <li class="lvl1" id="item2">Second Item

<ul>

<li class="lvl1">Sub Item 1</li> <li class="lvl1">Sub Item 2 <ul>

<li class="lvl1">This time we are going to put in a bunch of text hear just to enjoy searching the text and show the power of the content filters in jQuery selectors.</li>

</ul>

</li> <li class="lvl1">Sub Item 3</li>

</ul> </li> <li class="lvl1">Third Item</li> <li class="lvl1">Fourth Item</li>

</ul>

NOTE: Test case does not fail in jsfiddle, etc. Only in console.

jQuery('.lvl1:nth-child(2) ul .lvl2:first-child')

comment:2 Changed 2 years ago by johnfarrar@…

Here is the link to it working right.

 http://jsfiddle.net/sosensible/MTZQY/3/

comment:3 Changed 2 years ago by timmywil

  • Owner set to johnfarrar@…
  • Priority changed from undecided to low
  • Status changed from new to pending
  • Component changed from unfiled to selector

I'm a little confused. You do know that the demo in jsfiddle cannot be accessed by the web inspector console because it's in an iframe, right? It will work if you do something like this:  http://jsfiddle.net/timmywil/MTZQY/7/

comment:4 Changed 2 years ago by rwaldron

  • Status changed from pending to closed
  • Resolution set to worksforme

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.