summaryrefslogtreecommitdiffstats
path: root/src/elements/TextPath.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/elements/TextPath.js')
-rw-r--r--src/elements/TextPath.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/elements/TextPath.js b/src/elements/TextPath.js
index 9ed4a71..edac399 100644
--- a/src/elements/TextPath.js
+++ b/src/elements/TextPath.js
@@ -93,7 +93,7 @@ registerMethods({
targets () {
return baseFind('svg textPath').filter((node) => {
- return node.attr('href').includes(this.id())
+ return (node.attr('href') || '').includes(this.id())
})
// Does not work in IE11. Use when IE support is dropped