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"));
        });
    });
});

@@ -179,23 +179,99 @@
     
-$template.html(
+console.log(%22OK1%22);%0A        console.log($template.attr(%22id%22));%0A        $template%5B0%5D.text = 
 '%3Cdi
@@ -365,16 +365,25 @@
 -list%22%3E%3C
+li%3E%3C/li%3E%3C
 /ul%3E%3C/di
@@ -385,16 +385,43 @@
 %3E%3C/div%3E'
+;%0A        console.log(%22OK2%22
 );%0A     

fix templating test for IE8