Skip to main content

Bug Tracker

Side navigation

#9579 closed bug (patchwelcome)

Opened June 14, 2011 11:21AM UTC

Closed July 12, 2011 02:52PM UTC

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:
Blocked by: Blocking:
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.

Attachments (0)
Change History (3)

Changed June 14, 2011 11:24AM UTC by winSharp93 comment:1

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

Changed June 29, 2011 07:03PM UTC by timmywil comment:2

component: unfiledselector
priority: undecidedlow
status: newopen

Changed July 12, 2011 02:52PM UTC by john comment:3

resolution: → patchwelcome
status: openclosed

Unfortunately we really don't have to bandwidth to tackle SVG-related issues, patches would be appreciated.

http://docs.jquery.com/Won%27t_Fix