diff options
Diffstat (limited to 'src/elements')
-rw-r--r-- | src/elements/Svg.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/elements/Svg.js b/src/elements/Svg.js index 53b488c..f96a5f8 100644 --- a/src/elements/Svg.js +++ b/src/elements/Svg.js @@ -42,7 +42,7 @@ export default class Svg extends Container { defs () { if (!this.isRoot()) return this.root().defs() - return adopt(this.node.getElementsByTagName('defs')[0]) + return adopt(this.node.querySelector('defs')) || this.put(new Defs()) } |