Welcome to WebmasterWorld Guest from 184.108.40.206
Forum Moderators: incrediBILL
But, I believe the <object> tag is supposed to be used in its stead? Is this correct?
If so, does anyone have some sample XHTML that demonstrates this? I know how to use an <object> tag in lieu of an <img>, but how about for another XHTML file?
You have the right idea AFAICT, the <object> will eventually replace the <iframe> (at least it seems that way), but currently it doesn't work in all the browsers.
An example would be:
<object id="page" type="text/html"
<p>Oops! That didn't work...</p>
Check out this [xml.com] article by Mark Pilgrim for more info (it is dealing with <object> as a replacement for <img>, but it is still relevant).
Nb. Firebird 7 (the nightlies anyway), and Opera 7, and IE6 (SP1 w/ latest cumulative patch), now support <object> with HTML data pretty well (seems they basically treat it as an iframe).
Ps. I only tested with this DTD:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"