Bug Tracker

Modify

Ticket #9579 (closed bug: patchwelcome)

Opened 2 years ago

Last modified 23 months ago

jQuery([elementOfDOMElements]).children([selelector]) produces strange results when array has multiple elements of which one is an svg

Reported by: winSharp93 Owned by:
Priority: low Milestone: 1.next
Component: selector Version: 1.6.1
Keywords: Cc:
Blocking: Blocked by:

Description

See  http://jsfiddle.net/PWruv/2/

While in general, finding SVG-elements by their class using the ".classname" selector works fine (first part of example), it doesn't work when using an array of multiple DOMElements as a context (second part of the example). Note that adding the div "bar" to the array should not change the result of the selector - however, it is does.

Tested in FF 4, Chrome and IE 9.

Change History

comment:1 Changed 2 years ago by winSharp93

"Fails" comment on wrong assert - updated example here:  http://jsfiddle.net/PWruv/4/

comment:2 Changed 23 months ago by timmywil

  • Priority changed from undecided to low
  • Status changed from new to open
  • Component changed from unfiled to selector

comment:3 Changed 23 months ago by john

  • Status changed from open to closed
  • Resolution set to patchwelcome

Unfortunately we really don't have to bandwidth to tackle SVG-related issues, patches would be appreciated.  http://docs.jquery.com/Won%27t_Fix

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.