Skip to content

Namespaced attributes are not exported correctly #100

@wout

Description

@wout

I'm using svgdom for a project, and it's doing an awesome job. So far, it has helped us generate over 4000 SVG files which are then exported to PNG using Inkscape.

We had one issue though. Namespaced (xlink) attributes are rendered without the namespace. I've now fixed this in Crystal on the server side:

  private def fix_svg_xlink_attributes(svg)
    svg.gsub(/ href="#/, %( xlink:href="#))
  end

But it's not an ideal situation.

I'm just calling outerHTML on the generated SVG element. Maybe I'm missing something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions