Bug Tracker

Opened 14 years ago

Closed 14 years ago

#3347 closed bug (invalid)

<object> & <embed> elements returned as functions using a selector

Reported by: DanJ Owned by:
Priority: major Milestone: 1.3
Component: core Version: 1.2.6
Keywords: object, embed Cc: DanJ, flesler
Blocked by: Blocking:


Using this bit of code: $("#example :not('script')")

On this example markup:

<div id="example">

<script> stuff(); </script>

<p>html markup</p>

<object id="something"> <param name="something"> <param name="something_else"> <embed name="something_funky"> </object>

<noscript>No script text</noscript>


...returns everything excluding the script, which is fine, however any object or embed tags are returned as functions?

Attachments (2)

testcase.html (951 bytes) - added by ajpiano 14 years ago.
this shows the problem in firefox.
testcase-nojquery.html (384 bytes) - added by dmethvin 14 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 Changed 14 years ago by flesler

Cc: DanJ flesler added
Component: unfilledcore
Owner: flesler deleted

That's how Firebug represents them, doesn't mean they're functions. Do you find any problem using this ? or just concerned about how they look ?

comment:2 Changed 14 years ago by DanJ

Returning the value of $("#example :not('script')") returns everything excluding the object and embed markup, be it through an alert, or by setting innerHTML on another node in the page, surely this isn't right?

comment:3 Changed 14 years ago by flesler

need: ReviewTest Case

Could you provide a test case ? a minimalistic html file with the requires html and js to reproduce the problem. Thanks.

Changed 14 years ago by ajpiano

Attachment: testcase.html added

this shows the problem in firefox.

Changed 14 years ago by dmethvin

Attachment: testcase-nojquery.html added

comment:4 Changed 14 years ago by dmethvin

This is a Firefox problem. I'm attaching a simpler test case that doesn't use jQuery but shows the same problem. If you call jQuery.isFunction on this DOM element in function's clothes, it will return false as it should.

comment:5 Changed 14 years ago by flesler

Resolution: invalid
Status: newclosed

Ok then, no issue here. Reopen if you find any problem.

Note: See TracTickets for help on using tickets.