Script templates are an important technology use that was also highlighted during the IE9 Keynote at MIX by use of the jQuery template contributions from Microsoft.
An example of a script template:
<script type="text/html" id="tpl-example">
<div> foo </div>
There is a functionality regression in IE9 Document Mode, where the script template contents are HTML encoded when read through its innerHTML property.
Example usage code:
In IE9 Document Mode, the alert will show "& lt;div& gt; foo & lt;/div& gt;".
In IE8 Document Mode, and all other document modes, the alert will show "<div> foo </div>".
This is contrary to the behavior of IE5-IE8, as well as all other browsers.
This impacts script functionality in major web applications.
IE9 Document Mode can be forced by the site developer by using an HTML5 DTD, such as