Bug Tracker

Opened 11 years ago

Closed 11 years ago

#11032 closed bug (invalid)

$('#iframeId').attr('contentDocument') don’t work

Reported by: [email protected] Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.7
Keywords: Cc:
Blocked by: Blocking:


it should be return a DOMElement "Document". And it works ago.

Also can use like this: $('#iframeId')[0].contentDocument

But this don't : $($('#Editor_Edit_EditorBody_ifr')[0]).attr('contentDocument')

I think it's a bug.

Change History (1)

comment:1 Changed 11 years ago by dmethvin

Resolution: invalid
Status: newclosed

You want .prop() since contentDocument is not an *attribute*.

Note: See TracTickets for help on using tickets.