views:

134

answers:

1

I have an html page which renders an html page in an iframe where my page adds a topbar to the whole content. Inorder to render the whole page seemless, I had to rely on quirksmode rendering of the page to display the following:(similar to the way google image results page(page u get on click of an image with a top frame)-

<table>
    <tbody>
        <tr>
            <td>
               <!-- Top bar content -->
           </td>
       </tr>
       <tr>
            <td>
                <iframe src="http://anysite.com/"/&gt;
            </td>
       </tr>
    </tbody>
</table>

The problem here is that there are pages which donot render properly in quirks mode. So they do not come out properly in the iframe. How will I overcome this? Can I render just the iframe in standards mode while the whole page is rendered in quirks mode(which I cannot compromise) .

Is there an alternative solution?

+2  A: 

The iframe is a window separate from it's parent page. Whether the page in the iframe is rendered in quirks mode or not is entirely dependent on the markup in that page. It has nothing to do with how the parent page is rendered.

Guffa
Then, how come am i seeing that the pages which otherwise render properly, getting their alignments all messed up in this page?
Ajay
@Ajay: That's hard to tell without doing some real investigating in the actual page, but it definitely has nothing to do with how the parent page is rendered.
Guffa