Bug Tracker

Opened 9 years ago

Closed 9 years ago

#15172 closed bug (notabug)

DOMExcetion that occurs in $.fn.contents when elem is iframe

Reported by: unreal666 Owned by:
Priority: undecided Milestone: 1.next/2.next
Component: traversing Version:
Keywords: Cc:
Blocked by: Blocking:


When $('iframe').contents(), DOMException exception occurs with SecurityError name, because elem.contentDocument and elem.contentWindow.document denied for iframe.

Change History (2)

comment:1 Changed 9 years ago by unreal666

correction - the exception occurs only if iframe on different domain or protocol.

Last edited 9 years ago by unreal666 (previous) (diff)

comment:2 Changed 9 years ago by dmethvin

Resolution: notabug
Status: newclosed

See the pull request, we don't want to swallow this exception or change the behavior for same-origin iframes.

Note: See TracTickets for help on using tickets.