[jQuery] Can't access html content of object tags
I'm exploring/hacking some ideas today that I've been thinking about
over the weekend. Please don't recommend using the jquery.load and
other built-in applications for this. I know about them but that's not
what I'm working on.
I'm loading an for an RSS feed into an <object> tag:
<object id="content" data="rss.xml" type="application/xhtml+xml"></
object>
This loads correctly. However, I'm trying to access the html/xml
content of the object. This code works if I wanted to read the
contents from an iframe:
$('#iframeid').contents().find('body').html()
I'm having a really hard time adapting that to access the contents of
the object tag. Documentation on how to do it is limited (several
hours of Google now spent.)
As an extra note, its possible to clone the <object> tag quite nicely.
Just can't access its contents:
$("#content").clone(true).appendTo("#copy");
Any ideas?