Skip to content

Commit b28a9a6

Browse files
cireularsmagne
authored andcommitted
Make svg images with links valid
* lisp/svg.el (svg-create): Specify xlink namespace for svg images (bug#40010). Copyright-paperwork-exempt: yes
1 parent 7515252 commit b28a9a6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lisp/svg.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ any further elements added."
7070
(height . ,height)
7171
(version . "1.1")
7272
(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))))
7475

7576
(defun svg-gradient (svg id type stops)
7677
"Add a gradient with ID to SVG.

0 commit comments

Comments
 (0)