summaryrefslogtreecommitdiff
path: root/lisp/svg.el
diff options
context:
space:
mode:
authorZhu Zihao <all_but_last@163.com>2020-03-20 16:35:31 +0100
committerLars Ingebrigtsen <larsi@gnus.org>2020-03-20 16:36:40 +0100
commitb28a9a6cc3451ea865449cf010466cd3ac8bf9a0 (patch)
treed60b5b51adcf820360773ecb151d4c22cf3ad38e /lisp/svg.el
parent7515252cce60de91fce19f5efa84d326f0b14ca5 (diff)
downloademacs-b28a9a6cc3451ea865449cf010466cd3ac8bf9a0.tar.gz
Make svg images with links valid
* lisp/svg.el (svg-create): Specify xlink namespace for svg images (bug#40010). Copyright-paperwork-exempt: yes
Diffstat (limited to 'lisp/svg.el')
-rw-r--r--lisp/svg.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/svg.el b/lisp/svg.el
index 6a2fc4c90fc..370c9c04e76 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")
- ,@(svg--arguments nil args))))
+ (xmlns:xlink . "http://www.w3.org/1999/xlink")
+ ,@(svg--arguments nil args))))
(defun svg-gradient (svg id type stops)
"Add a gradient with ID to SVG.