From ee5c85670684d777986a024fd712a8bbffabdff6 Mon Sep 17 00:00:00 2001 From: Daniel Freedman Date: Tue, 9 Sep 2014 17:23:21 -0700 Subject: [PATCH] be more explicit with svg nodes for firefox and safari --- test/js/gestures.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/js/gestures.js b/test/js/gestures.js index 65cac68..2099c1e 100644 --- a/test/js/gestures.js +++ b/test/js/gestures.js @@ -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 = ''; - 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();