Bug Tracker

Opened 8 years ago

Closed 8 years ago

#11032 closed bug (invalid)

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

Reported by: xw_cht.y@… Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.7
Keywords: Cc:
Blocked by: Blocking:

Description

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 8 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.