How to specify QuirksMode for doctype in iframe in IE 9?

Question:

We have a portal where doctype is compatible with xhtml 1.0. Then on the portal we have iframe content, where we implement various web applications. Some of these applications were written by us, some of them are third-party.

Now in this iframe we insert, among other things, Microsoft Reporting Service reports. The problem is that Reporting Service Reports requires QuirksMode to display "correctly." And the portal does not work in QuirksMode (this is fine, as far as I know, since we focus only on 9 and, possibly, on IE8). The portal also does not render well in IE7, and we will give up support for IE8 as soon as possible.

However, IE9 seems to inherit document mode from the parent page, so Reporting service reports are displayed in IE9 standards mode instead of quirks mode. Thus, all reports are displayed incorrectly (and I do not mean a little, it is very difficult, completely wrong, absolutely terrible)

The problem is that we cannot change the reporting service ...
There is no way to force the reporting service (any version) to display non-quirksmode HTML.

<y> By Will the iframe render in quirks mode? i could add

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"> <meta http-equiv="X-UA-Compatible" content="IE=8" /> 

To get an iframe to render in QuirksMode. (edit: doesn't even work when I don't care how the portal renders and places it anyway)


Unfortunately, the portal, as said, is not compatible with IE7, so this is not an option.
In addition, SSRS reports work in a different domain than the portal, so I cannot use JavaScript / jQuery anyway.

Is there a way to render the iframe in QuirksMode without destroying the layout of the parent page?
Or a (already existing) way to make the reporting service render valid HTML (I certainly don’t have the time to write a custom HTML extension)?

+8
html doctype iframe reporting-services quirks-mode
source share
2 answers

Via MSDN :

Although the new rendering engine is only used when Windows® Internet Explorer® detects that the HTML page has requested the highest level of standards support, the same is not always true for child pages that can be loaded into frames and iframes, since it can only work one rendering engine , IE9 mode also includes emulation for Quirks mode.

Sorry, but what you want to do is impossible to achieve in IE9.

+2
source share

Necromancy in 2016.

If you have the same problem (with SSRS):
The 2016 SQL Server CTP 3.3 Reporting-Service ( Preview Portal ) provides standardized HTML.

0
source share

All Articles