Skip to content

Commit bf39376

Browse files
Merge pull request #3914 from preactjs/ie11-fixes-2
2 parents de08e91 + bdf100d commit bf39376

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

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', () => {

test/browser/render.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ describe('render()', () => {
8585
});
8686

8787
// IE11 doesn't support these.
88-
if (/Trident/.test(window.navigator.userAgent)) {
88+
if (!/Trident/.test(window.navigator.userAgent)) {
8989
it('should render px width and height on img correctly', () => {
9090
render(<img width="100px" height="100px" />, scratch);
9191
expect(scratch.innerHTML).to.eql(`<img width="100px" height="100px">`);

0 commit comments

Comments
 (0)