react / wstein / node_modules / jest-cli / node_modules / jsdom / node_modules / cssstyle / README.md
80676 viewsCSSStyleDeclaration
CSSStyleDeclaration is a work-a-like to the CSSStyleDeclaration class in Nikita Vasilyev's CSSOM. I made it so that when using jQuery in node setting css attributes via ParseError: KaTeX parse error: Expected 'EOF', got '#' at position 246: …-Style/css.html#̲CSS-CSSStyleDec….fn.css()](http://api.jquery.com/css/) operates.
Why not just issue a pull request?
Well, NV wants to keep CSSOM fast (which I can appreciate) and CSS2Properties aren't required by the standard (though every browser has the interface). So I figured the path of least resistence would be to just modify this one class, publish it as a node module (that requires CSSOM) and then make a pull request of jsdom to use it.
How do I test this code?
npm test
should do the trick, assuming you have the dev dependencies installed: