Git Product home page Git Product logo

Comments (7)

w0rm avatar w0rm commented on June 18, 2024

@legostud, can you provide source files? I just need <svg> elements and their attributes, <svg> contents are not required.

from gulp-svgstore.

w0rm avatar w0rm commented on June 18, 2024

@legostud please provide a test case or I will have to close this as "can't reproduce".

from gulp-svgstore.

w0rm avatar w0rm commented on June 18, 2024

@legostud I added the test (that is passing) to this branch: https://github.com/w0rm/gulp-svgstore/tree/51-duplicate-namespaces

from gulp-svgstore.

w0rm avatar w0rm commented on June 18, 2024

/cc @ghetolay what do you think of this issue?

from gulp-svgstore.

ghetolay avatar ghetolay commented on June 18, 2024

Well an example would be great because duplicate of attribute names seems very unlikely.
Because we could totally do something wrong on the detect/check of namespace procedure but then the part about adding attribute is very simple :

for (var nsName in namespaces)
  $combinedSvg.attr(nsName, namespaces[nsName])

namespaces being an object it's technically impossible to add the same nsName twice. And EVEN if we did call attr() twice with same attribute name it should replace old value not duplicate the attribute.

So this is very odd for me and I have absolutely no idea about how this is possible.

from gulp-svgstore.

ghetolay avatar ghetolay commented on June 18, 2024

@legostud Also quick guess, if it works on gulp-svgstore 5.0.4, and since this version is not adding any namespace, this is probably because you are adding it yourself.
This is maybe why you end up with duplicate namespace on version 5.0.5 : first one added by gulp-svgstore and second one by you.

from gulp-svgstore.

w0rm avatar w0rm commented on June 18, 2024

@ghetolay yeah, could be it. Anyway, I am closing this because @legostud is not responding.

from gulp-svgstore.

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.