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 | |
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')
-rw-r--r-- | src/elements/ClipPath.js | 4 | ||||
-rw-r--r-- | src/elements/Gradient.js | 4 | ||||
-rw-r--r-- | src/elements/Mask.js | 2 | ||||
-rw-r--r-- | src/elements/Pattern.js | 4 | ||||
-rw-r--r-- | src/elements/TextPath.js | 2 |
5 files changed, 8 insertions, 8 deletions
diff --git a/src/elements/ClipPath.js b/src/elements/ClipPath.js index add119e..f17428f 100644 --- a/src/elements/ClipPath.js +++ b/src/elements/ClipPath.js @@ -20,7 +20,7 @@ export default class ClipPath extends Container { } targets () { - return baseFind('svg [clip-path*="' + this.id() + '"]') + return baseFind('svg [clip-path*=' + this.id() + ']') } } @@ -44,7 +44,7 @@ registerMethods({ : this.parent().clip().add(element) // apply mask - return this.attr('clip-path', 'url("#' + clipper.id() + '")') + return this.attr('clip-path', 'url(#' + clipper.id() + ')') }, // Unclip element diff --git a/src/elements/Gradient.js b/src/elements/Gradient.js index a698225..d3fa15b 100644 --- a/src/elements/Gradient.js +++ b/src/elements/Gradient.js @@ -29,7 +29,7 @@ export default class Gradient extends Container { } targets () { - return baseFind('svg [fill*="' + this.id() + '"]') + return baseFind('svg [fill*=' + this.id() + ']') } // Alias string conversion to fill @@ -52,7 +52,7 @@ export default class Gradient extends Container { // Return the fill id url () { - return 'url("#' + this.id() + '")' + return 'url(#' + this.id() + ')' } } diff --git a/src/elements/Mask.js b/src/elements/Mask.js index 3faa3a7..5b462f7 100644 --- a/src/elements/Mask.js +++ b/src/elements/Mask.js @@ -21,7 +21,7 @@ export default class Mask extends Container { } targets () { - return baseFind('svg [mask*="' + this.id() + '"]') + return baseFind('svg [mask*=' + this.id() + ']') } } 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() + ')' } } diff --git a/src/elements/TextPath.js b/src/elements/TextPath.js index 2a17854..2af73e7 100644 --- a/src/elements/TextPath.js +++ b/src/elements/TextPath.js @@ -97,7 +97,7 @@ registerMethods({ }) // Does not work in IE11. Use when IE support is dropped - // return baseFind('svg textPath[*|href*="' + this.id() + '"]') + // return baseFind('svg textPath[*|href*=' + this.id() + ']') } } }) |