#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 14 years ago by
comment:2 Changed 14 years ago by
Status: | new → assigned |
---|
comment:5 Changed 13 years ago by
Resolution: | → duplicate |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
I also should note it is present in both 1.3.2 and 1.4.