Skip to content

IE8 Support #159

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add test for data-html replacing text
  • Loading branch information
Jon Eisen committed Sep 4, 2014
commit a70d217be3686bb296d29548587d0d2b7084cb47
8 changes: 8 additions & 0 deletions test/bindings.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,11 @@ describe('Reactive#bind(name, fn)', function(){
assert(el.value == 'value');
})
})

describe('data-html', function () {
it('should replace html content', function(){
var el = domify('<div data-html="value">text to be replaced</div>');
var view = reactive(el, { value: '<div data-html="value"></div>' });
assert(el.innerHTML === '<div data-html="value"></div>');
})
})