Skip to content

Commit

Permalink
Merge pull request knockout#100 from antis/master
Browse files Browse the repository at this point in the history
Update spec to account for FireFox syntax - thanks Antis!
  • Loading branch information
SteveSanderson committed May 12, 2011
2 parents 910ae40 + 9c87aa8 commit 011b36f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions spec/defaultBindingsBehaviors.js 100755 → 100644
@@ -1,4 +1,3 @@

function prepareTestNode() {
var existingNode = document.getElementById("testNode");
if (existingNode != null)
Expand Down Expand Up @@ -142,9 +141,12 @@ describe('Binding: HTML', {
var tr = testNode.childNodes[0].childNodes[0];
if (tr.tagName == 'TBODY')
tr = tr.childNodes[0];

var td = tr.childNodes[0];

value_of(tr.tagName).should_be("TR");
value_of(tr.childNodes[0].tagName).should_be("TD");
value_of(tr.childNodes[0].innerText).should_be("hello");
value_of(td.tagName).should_be("TD");
value_of('innerText' in td ? td.innerText : td.textContent).should_be("hello");
}
});

Expand Down

0 comments on commit 011b36f

Please sign in to comment.