bug 7706 quadruple execution

demonstrates that code in ${} gets run 4x instead of 1x.

HTML

<script src="http://ajax.microsoft.com/ajax/jquery.templates/beta1/jquery.tmpl.js"></script>
    
<script type="text/html" id="thingies">
      ${(x++)?"":""}
      <h1>x should be 1: <br> x=${x}</h1>
</script>


<span id="cursor" />

JavaScript

$(function() {
  window.x = 0;
  $('#thingies').tmpl({}).insertBefore('#cursor');
});