Skip to content

Commit bdf100d

Browse files
Fix test failing in IE11
1 parent bb276c3 commit bdf100d

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

compat/test/browser/textarea.test.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@ describe('Textarea', () => {
3232

3333
hydrate(<App />, scratch);
3434
expect(scratch.firstElementChild.value).to.equal('foo');
35-
expect(scratch.innerHTML).to.be.equal('<textarea></textarea>');
35+
36+
// IE11 always displays the value as node.innerHTML
37+
if (!/Trident/.test(window.navigator.userAgent)) {
38+
expect(scratch.innerHTML).to.be.equal('<textarea></textarea>');
39+
}
3640
});
3741

3842
it('should alias defaultValue to children', () => {

0 commit comments

Comments
 (0)