aboutsummaryrefslogtreecommitdiffstats
path: root/src/elements/Pattern.js
diff options
context:
space:
mode:
authorHarry Faulkner <flkn.haz@gmail.com>2022-08-21 11:13:53 +0100
committerHarry Faulkner <flkn.haz@gmail.com>2022-08-21 11:13:53 +0100
commitffa6eb223ee608056ac9cd24d122629d9ead9f94 (patch)
tree954d19ed7290411787252b887fae3981e40021b1 /src/elements/Pattern.js
parenta942ca8a651ad50ce3d698f4d9568ef171acd054 (diff)
downloadsvg.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.js4
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() + ')'
}
}