Forum Moderators: open

Message Too Old, No Replies

IE won't render <iframe> when Frameset doctype is used

Any workarounds?

         

MatthewHSE

5:57 pm on Jan 26, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I've got a page that contains one table. Within one of the table cells is an iframe. I've been using the HTML Frameset doctype, but today I discovered that IE won't render the <iframe> when ANY doctype is used.

I think this must be due to the iframe being inside a table cell, as I just recently tested IE with iframes and it worked fine; however, in that test, the iframe was just in a div.

So my questions are:

1.) Is this a known issue with IE? A Google search turned up no real relevant results.

2.) How might I go about fixing it so I can use the doctype and the iframe and make them play nicely together? (I need that doctype; the rest of the page layout depends on it!)

Thanks for any advice or pointers,

Matthew

encyclo

6:08 pm on Jan 26, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>test</title></head>
<body>
<table>
<tr>
<td><iframe width="150" height="150" src="lorem.txt"></iframe></td>
</tr>
</table>
</body></html>

I tried this simple test document (using XHTML 1.0 Trans. to ensure standards-compliance mode) and the iframe showed up fine in IE6. So... the bug is not down to the fact that the iframe is in a table cell.

Could you post the markup for your test case?