Skip to main content

Bug Tracker

Side navigation

#3347 closed bug (invalid)

Opened September 09, 2008 04:45PM UTC

Closed October 23, 2008 01:42AM UTC

<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:
Description

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>

</div>


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

Attachments (2)
  • testcase-nojquery.html (0.4 KB) - added by dmethvin October 23, 2008 12:57AM UTC.
  • testcase.html (0.9 KB) - added by ajpiano September 18, 2008 06:36PM UTC.

    this shows the problem in firefox.

Change History (5)

Changed September 09, 2008 05:03PM UTC by flesler comment:1

cc: → DanJ, flesler
component: unfilledcore
owner: flesler

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 ?

Changed September 09, 2008 11:14PM UTC by DanJ comment:2

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?

Changed September 10, 2008 03:26AM UTC by flesler comment:3

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 October 23, 2008 12:57AM UTC by dmethvin comment:4

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.

Changed October 23, 2008 01:42AM UTC by flesler comment:5

resolution: → invalid
status: newclosed

Ok then, no issue here.

Reopen if you find any problem.