Opened 15 years ago
Closed 12 years ago
#2706 closed bug (fixed)
$("iframe").contents().width() throws exception
Reported by: | telega | Owned by: | |
---|---|---|---|
Priority: | low | Milestone: | 1.2.4 |
Component: | attributes | Version: | 1.2.3 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Code $("iframe").contents().width() throws exception in Opera & Firefox and returns NaN in IE.
<script src="jquery.js"></script> <script> $(document).ready(function() { try { var width = $("iframe").contents().width(); alert(width); } catch(e) { alert(e); } }); </script> <iframe></iframe>
Change History (1)
comment:1 Changed 12 years ago by
Component: | core → attributes |
---|---|
Priority: | minor → low |
Resolution: | → fixed |
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Tested in all offending browsers listed above - this issue no longer exists:
http://jsfiddle.net/rwaldron/hqA8u/