diff options
| author | Zhu Zihao | 2020-03-20 16:35:31 +0100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2020-03-20 16:36:40 +0100 |
| commit | b28a9a6cc3451ea865449cf010466cd3ac8bf9a0 (patch) | |
| tree | d60b5b51adcf820360773ecb151d4c22cf3ad38e | |
| parent | 7515252cce60de91fce19f5efa84d326f0b14ca5 (diff) | |
| download | emacs-b28a9a6cc3451ea865449cf010466cd3ac8bf9a0.tar.gz emacs-b28a9a6cc3451ea865449cf010466cd3ac8bf9a0.zip | |
Make svg images with links valid
* lisp/svg.el (svg-create): Specify xlink namespace for svg images
(bug#40010).
Copyright-paperwork-exempt: yes
| -rw-r--r-- | lisp/svg.el | 3 |
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." | |||
| 70 | (height . ,height) | 70 | (height . ,height) |
| 71 | (version . "1.1") | 71 | (version . "1.1") |
| 72 | (xmlns . "http://www.w3.org/2000/svg") | 72 | (xmlns . "http://www.w3.org/2000/svg") |
| 73 | ,@(svg--arguments nil args)))) | 73 | (xmlns:xlink . "http://www.w3.org/1999/xlink") |
| 74 | ,@(svg--arguments nil args)))) | ||
| 74 | 75 | ||
| 75 | (defun svg-gradient (svg id type stops) | 76 | (defun svg-gradient (svg id type stops) |
| 76 | "Add a gradient with ID to SVG. | 77 | "Add a gradient with ID to SVG. |