diff --git a/src/parser.js b/src/parser.js index 9b1ce184..6d6b6413 100644 --- a/src/parser.js +++ b/src/parser.js @@ -700,8 +700,8 @@ var value, parentAttributes = { }; - // if there's a parent container (`g` node), parse its attributes recursively upwards - if (element.parentNode && /^[g|a]$/i.test(element.parentNode.nodeName)) { + // if there's a parent container (`g` or `a` or `symbol` node), parse its attributes recursively upwards + if (element.parentNode && /^symbol|[g|a]$/i.test(element.parentNode.nodeName)) { parentAttributes = fabric.parseAttributes(element.parentNode, attributes); }