Skip to main content

Bug Tracker

Side navigation

#3403 closed bug (invalid)

Opened September 24, 2008 07:42AM UTC

Closed September 24, 2008 05:00PM UTC

Traversing lists upward causes failed selection in IE6

Reported by: bravesirrobin Owned by:
Priority: major Milestone: 1.3
Component: selector Version: 1.2.6
Keywords: prev, list, nested lists, parent Cc: bravesirrobin, flesler
Blocked by: Blocking:

Here's a sample of a case I encountered in development.


<script src=""></script>



var firstText = $("#testId").text();

var secondText = $("#testId").parent().prev().text();

alert(firstText+", "+secondText);









<li id="testId">Stuff</li>











In latest Firefox, Safari, Opera, the alert is "Stuff, Bar", but in IE6 this is "Stuff, ". It's like the DOM structure for IE6 is somehow different for nested ULs. Didn't have IE7 handy, but that would be something to check as well.

Attachments (0)
Change History (1)

Changed September 24, 2008 05:00PM UTC by flesler comment:1

cc: → bravesirrobin, flesler
resolution: → invalid
status: newclosed

The top <ul> has some children <ul>'s. That's illegal html.