Skip to content

Commit

Permalink
Uses getAttribute instead of dataset in order to make it works on IE
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernando Souza committed Apr 1, 2017
1 parent f9fa01e commit 04ae9e6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ describe('IncrementalDomRenderer', function() {

component = new TestComponent();
let elementChild = component.element.querySelector('div');
assert.strictEqual('handleClick', elementChild.dataset.onclick);
assert.strictEqual('handleClick', elementChild.getAttribute('data-onclick'));
});

it('should attach listeners from "on<EventName>" attributes', function() {
Expand Down

0 comments on commit 04ae9e6

Please sign in to comment.