Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 78295236fd4ad65d270153eb116d46d88d88b224 1 parent 66d60ba
@SteveSanderson SteveSanderson authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  spec/defaultBindingsBehaviors.js
View
2  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);
Please sign in to comment.
Something went wrong with that request. Please try again.