diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2020-05-09 15:25:17 +1000 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2020-05-09 15:25:17 +1000 |
commit | 094fe85c6676fa26a8a033aaca89c06ed3e2962f (patch) | |
tree | ee2e49cb16c0f78b8fb04e2e7b7446901fc4cbb4 /src/elements/TextPath.js | |
parent | e541557d0a7ca53b0ad2fa343ee91203d1811248 (diff) | |
download | svg.js-094fe85c6676fa26a8a033aaca89c06ed3e2962f.tar.gz svg.js-094fe85c6676fa26a8a033aaca89c06ed3e2962f.zip |
make targets for textPath work when no href is set
Diffstat (limited to 'src/elements/TextPath.js')
-rw-r--r-- | src/elements/TextPath.js | 2 |
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 |