diff --git a/index.js b/index.js index 60b7be6..1310f35 100644 --- a/index.js +++ b/index.js @@ -236,7 +236,7 @@ function getSVGNode(el) { el = el.node() - if(el.tagName.toLowerCase() == 'svg') + if(el.tagName.toLowerCase() === 'svg') return el return el.ownerSVGElement