Skip to main content

Bug Tracker

Side navigation

#8911 closed bug (invalid)

Opened April 19, 2011 06:10AM UTC

Closed April 19, 2011 01:53PM UTC

the selector not working

Reported by: anonymous Owned by:
Priority: low Milestone:
Component: selector Version: 1.5.2
Keywords: Cc:
Blocked by: Blocking:

<!DOCTYPE html>




div { float:left; }

span { color:blue; }


<script src=""></script>











<div><ul id="testing">

<li class="test-me">Glen</li>


<li class="test-me">Tane</li>

<li class="test-me">Ralph</li>



<script>console.log($("#testing > li.test-me:nth-child(1)").text());</script>



Attachments (0)
Change History (1)

Changed April 19, 2011 01:53PM UTC by timmywil comment:1

component: unfiledselector
priority: undecidedlow
resolution: → invalid
status: newclosed

Thanks for taking the time to contribute to the jQuery project! That selector will not work in some browsers because your html is invalid. Cannot put a div inside a ul.

created test case