summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2023-01-28 20:07:59 +0100
committerGitHub <noreply@github.com>2023-01-28 20:07:59 +0100
commitd8ce1aec598e36457c0bb7e923cf5642420ceb86 (patch)
tree9f5364024bc8a53dfdac04d9e8dc68d507d400dd /src
parent9d61f56d9fbe04db320d7bc9714ea1f3ba3439b7 (diff)
parent8ab34ff0f96efc3653363f2896977136846ecb5f (diff)
downloadsvg.js-d8ce1aec598e36457c0bb7e923cf5642420ceb86.tar.gz
svg.js-d8ce1aec598e36457c0bb7e923cf5642420ceb86.zip
Merge pull request #1278 from HarryFaulkner/1277-use-single-quotes-for-maskWith
1277: remove double quotes from maskWith url()
Diffstat (limited to 'src')
-rw-r--r--src/elements/ClipPath.js4
-rw-r--r--src/elements/Gradient.js4
-rw-r--r--src/elements/Mask.js4
-rw-r--r--src/elements/Pattern.js4
-rw-r--r--src/elements/TextPath.js2
5 files changed, 9 insertions, 9 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 e43d83f..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() + ']')
}
}
@@ -44,7 +44,7 @@ registerMethods({
: this.parent().mask().add(element)
// apply mask
- return this.attr('mask', 'url("#' + masker.id() + '")')
+ return this.attr('mask', 'url(#' + masker.id() + ')')
},
// Unmask element
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() + ']')
}
}
})