old_contents: describe("templating.js", function() {
      var templating;
  
      beforeEach(function() {
          var $template = $('<script id="qq-template" type="text/template"></script>');
          $template.html('<div class="qq-uploader-selector qq-uploader"><ul class="qq-upload-list-selector qq-upload-list"></ul></div>');
          $fixture.append($template);
          templating = new qq.Templating({});
      });
  
      afterEach(function() {
          $("#qq-template").remove();
      });
  
      describe("hasAttr", function() {
          it("detects presence of an attr", function() {
              var div = document.createElement("div");
  
              div.setAttribute("foobar", "true");
              div.setAttribute("foobar1", "false");
  
              assert.ok(templating._testing.hasAttr(div, "foobar"));
              assert.ok(!templating._testing.hasAttr(div, "foobar1"));
              assert.ok(!templating._testing.hasAttr(div, "foobar2"));
          });
      });
  });
  
new_contents: describe("templating.js", function() {
      var templating;
  
      beforeEach(function() {
          var $template = $('<script id="qq-template" type="text/template"></script>');
          console.log("OK1");
          console.log($template.attr("id"));
          $template[0].text = '<div class="qq-uploader-selector qq-uploader"><ul class="qq-upload-list-selector qq-upload-list"><li></li></ul></div>';
          console.log("OK2");
          $fixture.append($template);
          templating = new qq.Templating({});
      });
  
      afterEach(function() {
          $("#qq-template").remove();
      });
  
      describe("hasAttr", function() {
          it("detects presence of an attr", function() {
              var div = document.createElement("div");
  
              div.setAttribute("foobar", "true");
              div.setAttribute("foobar1", "false");
  
              assert.ok(templating._testing.hasAttr(div, "foobar"));
              assert.ok(!templating._testing.hasAttr(div, "foobar1"));
              assert.ok(!templating._testing.hasAttr(div, "foobar2"));
          });
      });
  });
  
subject: fix templating test for IE8