diff options
Diffstat (limited to 'src/elements/TextPath.js')
-rw-r--r-- | src/elements/TextPath.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/elements/TextPath.js b/src/elements/TextPath.js index f26b251..fde8131 100644 --- a/src/elements/TextPath.js +++ b/src/elements/TextPath.js @@ -8,8 +8,8 @@ import baseFind from '../modules/core/selector.js' export default class TextPath extends Text { // Initialize node - constructor (node) { - super(nodeOrNew('textPath', node), node) + constructor (node, attrs = node) { + super(nodeOrNew('textPath', node), attrs) } // return the array of the path track element @@ -92,7 +92,7 @@ registerMethods({ }), targets () { - return baseFind('svg [href*="' + this.id() + '"]') + return baseFind('svg [*|href*="' + this.id() + '"]') } } }) |