Opened 13 years ago
Closed 13 years ago
#5895 closed bug (invalid)
$(s, ctx) fails for some selectors
Reported by: | LonTyplabCom | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.4.1 |
Component: | core | Version: | 1.4 |
Keywords: | $ context attribute-selector | Cc: | |
Blocked by: | Blocking: |
Description
In my app:
Native: ctx.querySelectorAll("input[type='search'][placeholder]").length == 1 OK
jQuery 1.4: $("input[type='search'][placeholder]", ctx).length == 0 WRONG $(ctx).find("input[type='search'][placeholder]").length == 0 WRONG
but (without context) $("input[type='search'][placeholder]").length == 1 OK
and (with context but without [type='search']) $("input[placeholder]", ctx).length == 1 OK
In my opinion a major bug. But who am I?
Note: See
TracTickets for help on using
tickets.
Please reopen with a complete test case (a complete file with html and script) so we can try to repro.