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)
Change History (5)
Changed September 09, 2008 05:03PM UTC by comment:1
cc: | → DanJ, flesler |
---|---|
component: | unfilled → core |
owner: | flesler |
Changed September 09, 2008 11:14PM UTC by 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 comment:3
need: | Review → Test 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 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 comment:5
resolution: | → invalid |
---|---|
status: | new → closed |
Ok then, no issue here.
Reopen if you find any problem.
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 ?