Closed Starzu closed 8 years ago
xlink:href
attribute needs a namespace to work with external SVG files. Following example doesn't work without this PR.
ul(
li(
a(href := "#")(
i(svg(xmlns := "http://www.w3.org/2000/svg",
xmlnsXlink := "http://www.w3.org/1999/xlink",
viewBox := "0 0 20 20")(
use(xLinkHref := "external_sprite.svg#id")
)),
span("text")
))).render
Ok, looks good, thanks!
Can someone explain to me what this is about? I know nothing about XML and namespaces...