On Microsoft's page about IE8 and Defining Document Compatibility at:
They give the following code to add to Web.config:
<?xml version="1.0" encoding="utf-8"?>
<configuratio n>
<system.webServ er>
<httpProtocol >
<customHeader s>
<clear />
<add name="X-UA-Compatible" value="IE=Emula teIE7">
</customHeaders>
</httpProtocol>
</system.webServe r>
</configuration>
When I tried to add this code using Visual Studio 2005, IntelliSense did not
seem to include the <httpProtocolta g as part of the schema. I was able to
type it in completely by hand, which since it is such a small section is not
a problem (I'm not lazy, this is just a question out of curiosity and
attempt to make something work correctly). I'm assuming it will work
correctly whether IntelliSense helped me or not, since Visual Studio did not
give me any errors. Why is IntelliSense not letting me know about the
<httpProtocolta g? Thanks.
NOTE: I don't know if anybody else noticed (and obviously Microsoft didn't,
since it still isn't fixed on the page I mentioned), but the line:
<add name="X-UA-Compatible" value="IE=Emula teIE7">
Is missing the self-closing slash and should be:
<add name="X-UA-Compatible" value="IE=Emula teIE7" />
Since XML is strict about this, I just wanted to point it out.
--
Nathan Sokalski
njsokalski@hotm ail.com
They give the following code to add to Web.config:
<?xml version="1.0" encoding="utf-8"?>
<configuratio n>
<system.webServ er>
<httpProtocol >
<customHeader s>
<clear />
<add name="X-UA-Compatible" value="IE=Emula teIE7">
</customHeaders>
</httpProtocol>
</system.webServe r>
</configuration>
When I tried to add this code using Visual Studio 2005, IntelliSense did not
seem to include the <httpProtocolta g as part of the schema. I was able to
type it in completely by hand, which since it is such a small section is not
a problem (I'm not lazy, this is just a question out of curiosity and
attempt to make something work correctly). I'm assuming it will work
correctly whether IntelliSense helped me or not, since Visual Studio did not
give me any errors. Why is IntelliSense not letting me know about the
<httpProtocolta g? Thanks.
NOTE: I don't know if anybody else noticed (and obviously Microsoft didn't,
since it still isn't fixed on the page I mentioned), but the line:
<add name="X-UA-Compatible" value="IE=Emula teIE7">
Is missing the self-closing slash and should be:
<add name="X-UA-Compatible" value="IE=Emula teIE7" />
Since XML is strict about this, I just wanted to point it out.
--
Nathan Sokalski
njsokalski@hotm ail.com
Comment