Bug Tracker

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#9597 closed bug (patchwelcome)

Selector not finding param inside an object in IE8

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

Description

When trying to find a param inside an object, it returns nothing; but if I find the children of the object, it returns the list of param. Demo: http://jsfiddle.net/Qx4nQ/1/

$('object param').length // returns 0
$('object').children().length // returns correct #

This problem occurs in IE8 only and in all of the latest versions of jQuery; it works correctly in v1.2.6.

The demo I made is using SWFObject, but this also applies to embed code directly from YouTube.

Change History (5)

comment:1 Changed 8 years ago by Motty

Oops, correction in the last statement above... the embed code directly from YouTube won't find the param using either example above. The children() selector returns the embed tag.

comment:2 Changed 8 years ago by Rick Waldron

Component: unfiledselector
Priority: undecidedlow
Status: newopen

This line from Sizzle is likely the issue. Especially since this used to work

https://github.com/jquery/sizzle/blob/master/sizzle.js#L1170-1174

comment:4 Changed 8 years ago by john

Resolution: patchwelcome
Status: openclosed

That line can't be the issue because we're never getting to it -- IE 8 has a (somewhat) working querySelectorAll implementation and apparently doesn't know how to find param elements in this case. Unfortunately I'm not really sure if we can reasonably do anything to fix this problem on our end.

comment:5 Changed 8 years ago by Rick Waldron

#11646 is a duplicate of this ticket.

Note: See TracTickets for help on using tickets.