mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-04-08 00:10:59 +00:00
Update parser.js
Don't miss A tags, they behave like g tags.
This commit is contained in:
parent
85ba574458
commit
d78451a6b9
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue