How can an iFrame that has content, have an undefined contentDocument object?
问题 I've been trying to develop a browser extension that needs to inject event handlers into all iFrames on a page. I have found that some iFrames, like those used for the Disqus commenting system, have content but no contentDocument. How is this possible, and how can I access the event handlers for an iframe without a contentDocument? Check out the comment section at the bottom of this page for an example. If you inspect the comment text area, you will see it is in an iFrame that has no