Support for Microsoft Internet Explorer: DojoDocMode tag
You can configure the DojoDocMode tag to support different versions of Microsoft Internet Explorer.
Using the DojoDocMode tag
1 Add the tag to bttdojo.tld.
<tag>
<name>docMode</name>
<tag-class>com.ibm.btt.dojo.tag.DojoDocModeTag</tag-class>
<body-content>scriptless</body-content>
<attribute>
<name>defaultMode</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<attribute>
<name>highestMode</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
<dynamic-attributes>true</dynamic-attributes>
</tag>
2 Add the tag to template.ftl.
<bttdojo:docMode defaultMode="8" highestMode="10"/>
Parameters
defaultMode
The default document mode for Internet Explorer. The default value is 8.
highestMode
The highest document mode for Internet Explorer 10 or higher. The value of can be null, but not equal to “null”.
Result
UDTT generates different code for different browsers:
When highestMode is not null
Internet Explorer 8:
<meta http-equiv="x-ua-compatible" content="IE= defaultMode" \>
Internet Explorer 10 or more:
<meta http-equiv="x-ua-compatible" content="IE= highestMode" \>
Other browsers: Empty; that is, nothing is generated.
When highestMode is null
Internet Explorer 8:
<meta http-equiv="x-ua-compatible" content="IE= defaultMode" \>
Internet Explorer 10:
<meta http-equiv="x-ua-compatible” content="IE= defaultMode" \>
Other browsers: Empty; that is, nothing is generated.
See also