diff --git a/src/parser.js b/src/parser.js index 89d11360..1d6c8d0a 100644 --- a/src/parser.js +++ b/src/parser.js @@ -649,7 +649,7 @@ parentAttributes = { }; // if there's a parent container (`g` node), parse its attributes recursively upwards - if (element.parentNode && /^g$/i.test(element.parentNode.nodeName)) { + if (element.parentNode && /^[g|a]$/i.test(element.parentNode.nodeName)) { parentAttributes = fabric.parseAttributes(element.parentNode, attributes); }