Bug Tracker

Modify

Ticket #1272 (closed bug: duplicate)

Opened 6 years ago

Last modified 6 years ago

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

Reported by: Carmine Owned by:
Priority: minor Milestone: 1.1.3
Component: core Version: 1.1.2
Keywords: is Cc:
Blocking: Blocked by:

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();

Change History

comment:1 Changed 6 years ago by Carmine

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

comment:2 Changed 6 years ago by brandon

  • Status changed from new to closed
  • Resolution set to duplicate

I believe #977 fixes the problem.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.