Update parser.js

Don't miss A tags, they behave like g tags.
This commit is contained in:
asturur 2014-07-20 14:38:22 +02:00
parent 85ba574458
commit d78451a6b9

View file

@ -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);
}