Bug Tracker

Ticket #2706 (new bug)

Opened 7 months ago

$("iframe").contents().width() throws exception

Reported by: telega Assigned to: anonymous
Type: bug Priority: minor
Milestone: 1.2.4 Component: core
Version: 1.2.3 Keywords:
Cc: Needs: Review

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>

Attachments

Note: See TracTickets for help on using tickets.