title: Containerless control flow syntax - the templates don't render properly with IE8
body: <p>When using containerless syntax and calling a Knockoutjs template, the IE8 doesn't render properly a template inside a foreach control flow. The initialization works ok, but if the <code>items</code> are changed, then the rendering is wrong. This happens only on IE8, 9 is ok, even 7 works.</p>
  <p><strong>Model</strong></p>
  <pre><code>function BrowseModel() {
      var self = this;
      self.items = ko.observableArray();
      self.itemsStep = ko.observable(1);
      self.repopulate = function() {
          self.itemsStep(self.itemsStep() + 3);
          return false;
      };
      ko.computed(function() {
          var arr = [];
          for (var i = self.itemsStep(); i &lt;= self.itemsStep() + 5; i++) {
              arr.push(i);
          }
          self.items(arr);
      }, self);
  }
  
  ko.applyBindings(new BrowseModel());
  </code></pre>
  <p><strong>View</strong></p>
  <pre><code>&lt;a href=&quot;javascript:;&quot; data-bind=&quot;click: repopulate&quot;&gt;Change items&lt;/a&gt;
  &lt;ul&gt;
      &lt;!-- ko foreach: items --&gt;                                                 
          &lt;!-- ko template: { name: 'product_template'} --&gt;
          &lt;!-- /ko --&gt;  
     &lt;!-- /ko --&gt;
  &lt;/ul&gt;
  
  &lt;ul&gt;
      &lt;li data-bind=&quot;template: { foreach: items, name: 'product_template' }&quot;&gt;&lt;/li&gt;
  &lt;/ul&gt;
  
  
  &lt;br /&gt;
  &lt;div data-bind=&quot;text: ko.toJSON($data)&quot;&gt;&lt;/div&gt;
  
  
  &lt;script type=&quot;text/html&quot; id=&quot;product_template&quot;&gt;
      &lt;li data-bind=&quot;text: $data&quot;&gt;&lt;/li&gt;
  &lt;/script&gt;    
  </code></pre>
  <p>I didn't find some pattern how IE 8 behaves. The rendering is kind random.</p>
  <p>Beside not using the containerless control flow syntax, how can I fix this?</p>
  <p><a href="http://jsfiddle.net/E7CK9/36/" rel="nofollow noreferrer">Fiddle</a></p>
  <p><em>LE: I'm using F12 Developer Tools if this does matter</em></p>