Giter VIP home page Giter VIP logo

Comments (2)

C0rn3j avatar C0rn3j commented on July 28, 2024 1

Judging by the fact this was Adobe Illustrator 9.0 released in 2000 I'll chalk it up to the SVG being broken due to ancient software, I did not create this.

This was svgz'd and I undid that, I can't seem to find where I even found it at this point (oxsc-app-shell.svgz)

from svgo.

SethFalco avatar SethFalco commented on July 28, 2024

It is meant to throw an error in this case. Your SVG is malformed, and should only work in browsers as they ignore namespaces. Can you confirm if this is the raw output from Illustrator, or did you either manually or through another tool manipulate this SVG already? 🤔

Meanwhile, you could make one of two changes to resolve the issue.

If you have any other questions or feedback, you're welcome to respond here!

Add XLink Namespace

Add the XLink namespace, which would be better for compatibility. You can do this be replacing the line that opens the <svg> tag to include the XLink namespace.

<svg width="147.717pt" height="151.179pt" viewBox="0 0 147.717 151.179" xml:space="preserve" xmlns:xlink="http://www.w3.org/1999/xlink">

Migrate from XLink:href to href

Replace all instances of xlink:href with just href. This attribute is an SVG 2 property though, and so may impact compatibility.

from svgo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.