Forum Moderators: open

Message Too Old, No Replies

Problem with OBJECT tag

         

emulman

8:46 am on Sep 3, 2007 (gmt 0)

10+ Year Member



See the following little page:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>prova OBJECT</title>
</head>
<body>
Prova tag OBJECT</br />
<object data="page1.html" width="500" height="500">IFRAME con OBJECT</object>
</body>
</html>

it shows the page 'page1.html' within the main page, like IFRAME tag. But this was deprecated by W3 which establish to use instead the OBJECT tag.
Well, this little page works perfectly on Firefox, Safari, Opera and Konqueror but not on IE 7! how can i work this page on IE7 using XHTML 1.1 strict?

penders

12:26 pm on Sep 3, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I wonder whether this is a security issue? As your code works fine in IE6 (not tested IE7) - although you do at first get a security warning regarding active content if you try to run it locally.

penders

8:39 am on Sep 5, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



...your code works fine in IE6 (not tested IE7)

I have since tested this under IE7 and it appears to work OK. I did, however, test this under HTML 4.01 Strict, but presumably you are serving your pages as text/html anyway under IE?!