Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
be more explicit with svg nodes for firefox and safari
Browse files Browse the repository at this point in the history
  • Loading branch information
dfreedm committed Sep 10, 2014
1 parent 42d1184 commit ee5c856
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/js/gestures.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,12 @@ suite('Platform Events', function() {
test('tap works on svg', function(done) {
var svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg');
svg.setAttribute('viewBox', '0 0 100 100');
svg.innerHTML = '<circle r="10" cx="50" cy="50" fill="black"></circle>';
var circle = svg.querySelector('circle');
var circle = document.createElementNS('http://www.w3.org/2000/svg', 'circle');
circle.setAttribute('r', '10');
circle.setAttribute('cx', '50');
circle.setAttribute('cy', '50');
circle.setAttribute('fill', 'black');
svg.appendChild(circle);
inner.appendChild(svg);
function test(ev) {
done();
Expand Down

0 comments on commit ee5c856

Please sign in to comment.