Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Taking text child nodes into account
- Loading branch information
Showing
with
3 additions
and
0 deletions.
-
+3
−0
framer/SVG.coffee
|
@@ -38,6 +38,9 @@ class exports.SVG |
|
|
|
|
|
if elements? |
|
|
for element in elements |
|
|
unless element instanceof SVGElement |
|
|
# Children can contain text nodes |
|
|
continue |
|
|
name = element.getAttribute("name") |
|
|
if not name? |
|
|
if element instanceof SVGGElement |
|
|