Skip to content

Commit

Permalink
Merge pull request #2831 from HugoDaniel/fix/svg-xlink-namespace
Browse files Browse the repository at this point in the history
Add the xmlns:xlink namespace to the root svg element
  • Loading branch information
bodymovin authored Aug 11, 2022
2 parents 54cc52d + 419f545 commit b90bfd5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions player/js/renderers/SVGRendererBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ SVGRendererBase.prototype.createSolid = function (data) {

SVGRendererBase.prototype.configAnimation = function (animData) {
this.svgElement.setAttribute('xmlns', 'http://www.w3.org/2000/svg');
this.svgElement.setAttribute('xmlns:xlink', 'http://www.w3.org/1999/xlink');
if (this.renderConfig.viewBoxSize) {
this.svgElement.setAttribute('viewBox', this.renderConfig.viewBoxSize);
} else {
Expand Down

0 comments on commit b90bfd5

Please sign in to comment.