diff options
author | Harry Faulkner <flkn.haz@gmail.com> | 2022-08-21 11:13:53 +0100 |
---|---|---|
committer | Harry Faulkner <flkn.haz@gmail.com> | 2022-08-21 11:13:53 +0100 |
commit | ffa6eb223ee608056ac9cd24d122629d9ead9f94 (patch) | |
tree | 954d19ed7290411787252b887fae3981e40021b1 /src/elements/Pattern.js | |
parent | a942ca8a651ad50ce3d698f4d9568ef171acd054 (diff) | |
download | svg.js-ffa6eb223ee608056ac9cd24d122629d9ead9f94.tar.gz svg.js-ffa6eb223ee608056ac9cd24d122629d9ead9f94.zip |
remove double quote from all 'url()' refs, update tests
Diffstat (limited to 'src/elements/Pattern.js')
-rw-r--r-- | src/elements/Pattern.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/elements/Pattern.js b/src/elements/Pattern.js index 61adace..18a75e8 100644 --- a/src/elements/Pattern.js +++ b/src/elements/Pattern.js @@ -21,7 +21,7 @@ export default class Pattern extends Container { } targets () { - return baseFind('svg [fill*="' + this.id() + '"]') + return baseFind('svg [fill*=' + this.id() + ']') } // Alias string conversion to fill @@ -44,7 +44,7 @@ export default class Pattern extends Container { // Return the fill id url () { - return 'url("#' + this.id() + '")' + return 'url(#' + this.id() + ')' } } |