GithubHelp home page GithubHelp logo

Comments (12)

davewichers avatar davewichers commented on July 24, 2024 1

Fixed in release 1.6.3 that just went out.

from antisamy.

davewichers avatar davewichers commented on July 24, 2024

Thanks for raising this issue. @spassarop - can you confirm the problem (with the provided test case), and see if you can come up with a fix?

from antisamy.

spassarop avatar spassarop commented on July 24, 2024

I can confirm. The important boolean is not used and the code that actually rebuilds the CSS is the following:

if (!isInline) { styleSheet.append('\t'); }
styleSheet.append(name);
styleSheet.append(':');

// append all values
while (value != null) {
styleSheet.append(' ');
styleSheet.append(validator.lexicalValueToString(value));
value = value.getNextLexicalUnit();
}
styleSheet.append(';');
if (!isInline) { styleSheet.append('\n'); }

I guess we could just add "!important" before the ';' append with an if. That for sure make the tests pass and I don't see the inconvenient with just adding the text before ending the CSS property.

from antisamy.

davewichers avatar davewichers commented on July 24, 2024

OK. Can you add a test case with and without !important, so we can verify this change only includes it when it is specified, and doesn't add it when it is not specified?

from antisamy.

spassarop avatar spassarop commented on July 24, 2024

from antisamy.

davewichers avatar davewichers commented on July 24, 2024

@spassarop - Thanks for jumping on this so quick! @mrpeny - We have implemented a quick fix in the 1.6.3 branch. Can you test the fix out to verify it fixes the problem as you'd expect. I want to make sure that the !important added back in is in exactly the right place and works as you expect.

from antisamy.

mrpeny avatar mrpeny commented on July 24, 2024

@davewichers I have checked the implementation in the PR and it looks good to me. I have also included 1.6.3-SNAPSHOT into our web project and it works as expected. Thank you for your prompt reply. 👍🏼

When do you plan to release 1.6.3?

from antisamy.

davewichers avatar davewichers commented on July 24, 2024

@mrpeny - Thanks for reviewing. I'd like to get the release out tonight. I just have to update some JavaDocs related to the other fix going out with 1.6.3. Then it should be ready to ship.

from antisamy.

mrpeny avatar mrpeny commented on July 24, 2024

Thank you.

from antisamy.

mrpeny avatar mrpeny commented on July 24, 2024

@davewichers when is it expected to appear on Maven Central?

from antisamy.

davewichers avatar davewichers commented on July 24, 2024

It's already there I believe.

from antisamy.

mrpeny avatar mrpeny commented on July 24, 2024

It's there now. Thank you. Have a nice weekend!

from antisamy.

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.