Opened 11 years ago
Closed 11 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: |
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 (7)
comment:1 Changed 11 years ago by
Cc: | DanJ flesler added |
---|---|
Component: | unfilled → core |
Owner: | flesler deleted |
comment:2 Changed 11 years ago by
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 11 years ago by
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 11 years ago by
Attachment: | testcase-nojquery.html added |
---|
comment:4 Changed 11 years ago by
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 11 years ago by
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 ?