summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/svg.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/svg.el b/lisp/svg.el
index 370c9c04e76..7aadbc23593 100644
--- a/lisp/svg.el
+++ b/lisp/svg.el
@@ -70,7 +70,8 @@ any further elements added."
(height . ,height)
(version . "1.1")
(xmlns . "http://www.w3.org/2000/svg")
- (xmlns:xlink . "http://www.w3.org/1999/xlink")
+ ,@(unless (plist-get args :xmlns:xlink)
+ '((xmlns:xlink . "http://www.w3.org/1999/xlink")))
,@(svg--arguments nil args))))
(defun svg-gradient (svg id type stops)