Skip to content

Commit

Permalink
Test for #278.
Browse files Browse the repository at this point in the history
  • Loading branch information
developit committed Aug 20, 2016
1 parent 5550f07 commit 5f88770
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/browser/svg.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,20 @@ describe('svg', () => {

expect(scratch.innerHTML).to.contain(` class="foo bar"`);
});

it('should switch back to HTML for <foreignObject>', () => {
render((
<svg>
<g>
<foreignObject>
<a href="#foo">test</a>
</foreignObject>
</g>
</svg>
), scratch);

expect(scratch.getElementsByTagName('a'))
.to.have.property('0')
.that.is.a('HTMLAnchorElement');
});
});

0 comments on commit 5f88770

Please sign in to comment.