Let's assume the following CSS snippet
#p1 {background-color: rgba(255, 0, 0, 0.3);}
The primitive type reports CSS_STRING which I think is ok given that there is no CSS_RGBACOLOR (just CSS_RGBCOLOR).
When retrieving the string value using primValue.getStringValue() it throws an exception (com.steadystate.css.dom.DOMExceptionImpl: This isn't a String type).
Note: toString() works just fine.
The issue seems relate to https://sourceforge.net/p/cssparser/mailman/cssparser-developers/thread/5190EBDC.2020800@docner.com/ but using the latest version (0.9.19) I do still encounter the issue described above.
Thanks!
Anonymous
did a quick fix
please use the latest snapshot
Did check snaphot version cssparser-0.9.20-20160721.090615-5.jar which does resolve the issue.
Thanks!
Thnaks for the feedback. Enjoy using CSSParser.