title: KnockoutJS `with` binding and IE8
body: <p>For some reason my code is generating the error below in IE8, but not in any of the normal browsers.</p>
  
  <pre><code>SCRIPT5022: Unable to parse bindings.
  Message: TypeError: 'logoSrc' is undefined;
  Bindings value: 'attr': { 'src': logoSrc } 
  </code></pre>
  
  <p>I confirmed that the logoSrc property is indeed defined, even in IE8, right before binding, but still it fails.  And disabling the binding to logoSrc just causes the next binding in line to fail.</p>
  
  <p>The html is below.  I know I've used a with binding before, so I'm pretty sure that's not the problem, and the html seems to be properly closed.</p>
  
  <pre><code>&lt;div data-bind="visible: mode() === 'print'" class="container-fluid"&gt;
      &lt;!-- ko with: printVm --&gt;
      &lt;div class="row-fluid"&gt;
          &lt;div class="span12"&gt;
              &lt;div class="page-header"&gt;
                  &lt;div class="pull-right" style="width:140px;height:60px;overflow:hidden;"&gt;
                      &lt;img data-bind="'attr': { 'src': logoSrc }" src="" /&gt;
                  &lt;/div&gt;
                  &lt;h2&gt;Invoice Statement - &lt;span data-bind="text: itemZeroClientName"&gt;&lt;/span&gt;&lt;/h2&gt;
              &lt;/div&gt;
              &lt;strong&gt;Invoice number:&lt;/strong&gt; &lt;span data-bind="text: invoiceId"&gt;&lt;/span&gt;
              &lt;strong&gt;Invoice date:&lt;/strong&gt; &lt;span data-bind="text: userInfo().invoiceDateDisplay"&gt;&lt;/span&gt;
              &lt;strong&gt;Client number:&lt;/strong&gt; &lt;span data-bind="text: itemZeroClientId"&gt;22365&lt;/span&gt;
              &lt;hr /&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="row-fluid"&gt;
          &lt;div class="span6 cr-tablet6 cr-phone6"&gt;
              &lt;h4&gt;Billed by &lt;span data-bind="text: companyNameDisplay"&gt;&lt;/span&gt;&lt;/h4&gt;
              &lt;span data-bind="html: companyInfo"&gt;&lt;/span&gt;
          &lt;/div&gt;
          &lt;div class="span6 cr-tablet6 cr-phone6"&gt;
              &lt;h4&gt;Billed to&lt;/h4&gt;
              &lt;span data-bind="html: clientInfoDisplay"&gt;&lt;/span&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  
      &lt;div class="row-fluid"&gt;
          &lt;div class="span12"&gt;
              &lt;hr /&gt;
              &lt;table id="printInvoiceTable" class="table"&gt;
                  &lt;thead&gt;
                  &lt;tr&gt;
                      &lt;th class="date"&gt;Date&lt;/th&gt;
                      &lt;th class="name"&gt;Provider&lt;/th&gt;
                      &lt;th class="code"&gt;Proc Code&lt;/th&gt;
                      &lt;th class="location"&gt;Location&lt;/th&gt;
                      &lt;th class="time"&gt;Hours&lt;/th&gt;
                      &lt;th class="units"&gt;Units&lt;/th&gt;
                      &lt;th class="charge"&gt;Charges&lt;/th&gt;
                  &lt;/tr&gt;
                  &lt;/thead&gt;
                  &lt;tbody data-bind="foreach: items"&gt;
                      &lt;tr&gt;
                          &lt;td data-bind="text: dateDisplay"&gt;&lt;/td&gt;
                          &lt;td data-bind="text: orgName"&gt;&lt;/td&gt;
                          &lt;td data-bind="text: procedureCodeString"&gt;&lt;/td&gt;
                          &lt;td data-bind="text: location"&gt;&lt;/td&gt;
                          &lt;td class="formatted-number" data-bind="text: timeWorkedHrs"&gt;&lt;/td&gt;
                          &lt;td class="formatted-number" data-bind="text: (unitsOfService() || 0).toFixed(2)"&gt;&lt;/td&gt;
                          &lt;td class="formatted-currency" data-bind="text: (clientCharges() || 0).toFixed(2)"&gt;&lt;/td&gt;
                      &lt;/tr&gt;
                  &lt;/tbody&gt;
                  &lt;tfoot&gt;
                      &lt;tr&gt;
                          &lt;td&gt;&lt;/td&gt;
                          &lt;td&gt;&lt;/td&gt;
                          &lt;td&gt;&lt;/td&gt;
                          &lt;td&gt;&lt;/td&gt;
                          &lt;td class="formatted-number" data-bind="text: totalWorkedHours"&gt;&lt;/td&gt;
                          &lt;td class="formatted-number" data-bind="text: totalUnitsOfService"&gt;&lt;/td&gt;
                          &lt;td class="formatted-currency" data-bind="text: totalClientRate"&gt;&lt;/td&gt;
                      &lt;/tr&gt;
                  &lt;/tfoot&gt;
              &lt;/table&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;!-- /ko --&gt;
  &lt;/div&gt;
  </code></pre>