Permalink
Browse files

Update "html" binding semantic spec to one that Opera can cope with

  • Loading branch information...
1 parent 66d60ba commit 78295236fd4ad65d270153eb116d46d88d88b224 @SteveSanderson SteveSanderson committed May 22, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/defaultBindingsBehaviors.js
@@ -123,7 +123,7 @@ describe('Binding: HTML', {
// Represents issue #98 (https://github.com/SteveSanderson/knockout/issues/98)
// IE 8 and earlier is excessively strict about the use of .innerHTML - it throws
// if you try to write a <P> tag inside an existing <P> tag, for example.
- var model = { textProp: "<p>hello</p><li>this isn't semantically correct</li>" };
+ var model = { textProp: "<p>hello</p><p>this isn't semantically correct</p>" };
testNode.innerHTML = "<p data-bind='html:textProp'></p>";
ko.applyBindings(model, testNode);
value_of(testNode.childNodes[0]).should_contain_html(model.textProp);

0 comments on commit 7829523

Please sign in to comment.