Bug Tracker

Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#5810 closed bug (duplicate)

`children` selector or scoped selector combined with attribute selectors fail for IMG src attribute

Reported by: dougneiner Owned by: john
Priority: minor Milestone: 1.4.1
Component: selector Version: 1.3.2
Keywords: Cc:
Blocked by: Blocking:

Description

A really strange selector bug came up the other night when I was helping a user out on Stack Overflow. I have put together an example of how it fails here:

http://pixelgraphics.us/jq/bugs/selector.html

But in summary, whenever you combine the > selector with a scoped select $( "> img[src='...']", scope) or use $(parent).children("img[src='...']") the selector will fail to properly match the element.

If you supply $= to the attribute selector on the same exact calls, the call succeeds. If you use $("parent > img[src='...']") the call also successfully matches the element.

Please let me know if you need more information.

Change History (6)

comment:1 Changed 9 years ago by dougneiner

I also should note it is present in both 1.3.2 and 1.4.

comment:2 Changed 9 years ago by john

Status: newassigned

comment:3 Changed 9 years ago by dmethvin

See also #5810.

comment:4 Changed 9 years ago by dmethvin

No, really see #6939.

comment:5 Changed 9 years ago by snover

Resolution: duplicate
Status: assignedclosed

comment:6 Changed 9 years ago by snover

Duplicate of #7128.

Note: See TracTickets for help on using tickets.