find() matches a <param> outside the given `context` #102

Closed
Krinkle opened this Issue Apr 11, 2012 · 5 comments

3 participants

@Krinkle
jQuery Foundation member

Back story:

test 5: selector: element
assertion 7:    equal( jQuery("param", "#object1").length, 2, "Object/param as context" );
Expected: 2
Result: 3
@dmethvin
jQuery Foundation member

$("#object1")[0].getElementsByTagName("param").length is also 3, so it looks like gEBTN doesn't work.

@dmethvin
jQuery Foundation member

However, $("#object1")[0].getElementsByTagName("*").length is 0 FYI

@timmywil
jQuery Foundation member

IE is very funny with object elements. We'll look into this, but it's not high priority.

@timmywil
jQuery Foundation member

I believe this could be fixed by using .childNodes instead, but we'll see how the code looks.

@timmywil
jQuery Foundation member

I've tried using childNodes and I don't see a fix for this.

Cantfix.

@timmywil timmywil closed this Aug 27, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment