Skip to main content

Bug Tracker

Side navigation

#3887 closed bug (duplicate)

Opened January 16, 2009 08:15AM UTC

Closed January 17, 2009 10:32PM UTC

next selector can match the wrong things

Reported by: dalangalma Owned by: john
Priority: major Milestone: 1.3.1
Component: selector Version: 1.3
Keywords: Cc:
Blocked by: Blocking:

I've found a case where the next selector doesn't seem to work. I've got a selector like " + a" but it'll match all "a" that are after a "span" (of any class, or no class) that appears after an "a".

So "<span/> <a/>" doesn't match, but the second "a" in "<a/> <span/> <a/>" does. I would expect it to only match "a"s that directly follow a "span" with the class "foo".

Here's the demo:

I've also attached the same demo file to this ticket.

Attachments (1)
Change History (1)

Changed January 17, 2009 10:32PM UTC by john comment:1

resolution: → duplicate
status: newclosed

Sounds like this is a duplicate of #3848 (there was a bug with the class filter).