Bug Tracker

Ticket #1272 (closed bug: duplicate)

Opened 1 year ago

Last modified 1 year ago

.is("img[@src], input[@src]") only match imgs.

Reported by: Carmine Assigned to: anonymous
Type: bug Priority: minor
Milestone: 1.1.3 Component: core
Version: 1.1.2 Keywords: is
Cc: Needs: Review

Description

If i use a filter like this : $(this).filter(function(index){

return $(this).is("img[@src], input[@src]"); }).hide();

The inputs are never selected.

I need to do this to have a correct selection :

$(this).filter(function(index){

return (

$(this).is("input[@type=image][@src]") $(this).is("img[@src]"));

}).hide();

Attachments

Change History

Changed 1 year ago by Carmine

Whooah ! Trac has stripped my two pipes. There is of course an 'or' between the to elements of the second proposal.

Changed 1 year ago by brandon

  • status changed from new to closed
  • resolution set to duplicate

I believe #977 fixes the problem.

Note: See TracTickets for help on using tickets.