IE9 - Homepage Quirks Mode and "Internet Explorer 9 Standards" in a Specific Frame

We have a legacy website that works in all of our IE9 clients in Quirks mode:

enter image description here

Also for completeness:

enter image description here

The site consists of many frames and a new requirement has arisen:
I need to create a new iFrame that will use bootstrapping and I need to display the content of this frame in Internet Explorer 9 standards (i.e. disable Quirks mode only in this iframe and execute rendering as usual).

I tried to put

<!DOCTYPE html> 

<meta http-equiv="X-UA-Compatible" content="IE=9">  

      

Inside a frame, but it didn't work.

+3


source to share


1 answer


Use the HTML5 doctype with the XML declaration in the markup associated with the URL <iframe src="..."></iframe>

:

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#" xmlns:fb="https://www.facebook.com/2008/fbml" xml:lang="en">
<!--...-->
</html>

      

Thus, when XML content is placed inside an IFRAME, the tree view will not be automatically generated by default. However, when the browser is running in Compatibility View, IE tries to more closely mimic the behavior of previous releases, so a tree view is shown in these circumstances.

OR XSLT:



<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="html5.xml"?>
<xsl:stylesheet version="1.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns="http://www.w3.org/1999/xhtml"
                >
<xsl:output method="xml" encoding="utf-8" version="" indent="yes" standalone="no" media-type="text/html" omit-xml-declaration="no" doctype-system="about:legacy-compat" />

<xsl:template match="xsl:stylesheet">
  <xsl:apply-templates/>
</xsl:template>

<xsl:template match="/">
  <html>
    <head>
      <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    </head>
    <body>
      These<br/>words<br/>are<br/>seperated<br/>by<br/>BRs
    </body>
  </html>
</xsl:template>

</xsl:stylesheet>

      

Links

0


source







All Articles