Giter Site home page Giter Site logo

Comments (7)

rpolley avatar rpolley commented on July 17, 2024

I believe this is caused by

next unless should.key?('attributes') && i.key?('attributes')
which causes the provider matches method to not compare the should value for the attributes to the is value of the attributes if the is value is nil, which is the case if the tag exists but does not have attributes

from xml_fragment.

Areson avatar Areson commented on July 17, 2024

I will try and review this in the next week.

from xml_fragment.

Areson avatar Areson commented on July 17, 2024

@rpolley You were spot on. Adding a check for the case where the definition has attributes defined but the existing element doesn't have any. Tested it on my end and it appears to work, but go ahead and pull from the development branch and give if a go before I package it up.

from xml_fragment.

Areson avatar Areson commented on July 17, 2024

@rpolley Bump

from xml_fragment.

1WindowsPuppetAdmin avatar 1WindowsPuppetAdmin commented on July 17, 2024

@Areson - can you merge this in? i don't think we need to wait on rpolley as long as you tested it and it works. I've been waiting for this fix as well.

from xml_fragment.

rpolley avatar rpolley commented on July 17, 2024

@Areson seconding this, @1WindowsPuppetAdmin is probably in a better position than I am to validate that this works anyway.

from xml_fragment.

Areson avatar Areson commented on July 17, 2024

I've released the updated version on the forge. Thanks for your patience.

from xml_fragment.

Related Issues (10)

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.